painfully diagnosed a performance hit with vxgi from one line being commented out (and a bug from eyepos being wrong)

This commit is contained in:
ecker 2026-05-14 22:00:17 -05:00
parent 2afcacc9e1
commit e35806bb04
3 changed files with 4 additions and 4 deletions

View File

@ -118,7 +118,7 @@
"gui": true,
"vsync": true, // vsync on vulkan side rather than engine-side
"hdr": true,
"vxgi": false, // to-do: fix issues
"vxgi": true, // to-do: fix issues
"culling": false,
"bloom": false,
"dof": false,

View File

@ -209,7 +209,7 @@ void populateSurface() {
const vec3 far3 = far4.xyz / far4.w;
surface.ray.direction = normalize( far3 - near3 );
surface.ray.origin = near3.xyz; // eyePos.xyz
surface.ray.origin = ubo.eyes[surface.pass].eyePos.xyz; // near3.xyz; // eyePos.xyz
depth = IMAGE_LOAD(samplerDepth).r;

View File

@ -1275,9 +1275,9 @@ void ext::ExtSceneBehavior::bindBuffers( uf::Object& self, uf::renderer::Graphic
}
if ( shouldUpdate ) {
// graphic.updatePipelines();
// graphic.update();
graphic.update();
renderMode.rebuild = true;
// metadata.shader.invalidated = false;
metadata.shader.invalidated = false;
}
if ( !graphic.material.hasShader(shaderType, shaderPipeline) ) {