nandi/jolt-nativepublic Fork 0
2ab40bf
Commits
Clone
git clone https://git.rickub.com/nandi/jolt-native.git
git clone ssh://git@rickub.com/nandi/jolt-native.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Take the resize scaffolding back out

The two eprintlns behind VIDYA_DEBUG_RESIZE were how the mismatch between
the buffer and the layout was measured; they were never meant to land.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
nandi committed 2026-08-30T18:36:00-07:00 Browse files
2ab40bf parent: 69b5de4
modified crates/jolt-vidya/src/app.rs +1 -24
@@ -334,17 +334,6 @@ impl Handler {
334334 let size = gl.window.inner_size();
335335 let dims = [size.width.max(1), size.height.max(1)];
336336
337- if std::env::var_os("VIDYA_DEBUG_RESIZE").is_some() {
338- let r = self.egui_ctx.screen_rect();
339- eprintln!(
340- "frame {} buffer={}x{} laid_out={}x{}",
341- self.frames + 1,
342- dims[0],
343- dims[1],
344- (r.width() * job.pixels_per_point).round() as u32,
345- (r.height() * job.pixels_per_point).round() as u32
346- );
347- }
348337 gl.painter.clear(dims, job.clear);
349338 gl.painter.paint_and_update_textures(
350339 dims,
@@ -744,19 +733,7 @@ impl App {
744733 return false;
745734 };
746735 let size = gl.window.inner_size();
747- let now = [size.width.max(1), size.height.max(1)];
748- if std::env::var_os("VIDYA_DEBUG_RESIZE").is_some() {
749- eprintln!(
750- " check frames={} now={}x{} frame_dims={}x{} -> {}",
751- self.handler.frames,
752- now[0],
753- now[1],
754- self.handler.frame_dims[0],
755- self.handler.frame_dims[1],
756- now != self.handler.frame_dims
757- );
758- }
759- now != self.handler.frame_dims
736+ [size.width.max(1), size.height.max(1)] != self.handler.frame_dims
760737 }
761738
762739 /// Close the open pass and throw its output away, presenting nothing.
@@ -334,17 +334,6 @@ impl Handler {
334 let size = gl.window.inner_size();334 let size = gl.window.inner_size();
335 let dims = [size.width.max(1), size.height.max(1)];335 let dims = [size.width.max(1), size.height.max(1)];
336 336
337- if std::env::var_os("VIDYA_DEBUG_RESIZE").is_some() {
338- let r = self.egui_ctx.screen_rect();
339- eprintln!(
340- "frame {} buffer={}x{} laid_out={}x{}",
341- self.frames + 1,
342- dims[0],
343- dims[1],
344- (r.width() * job.pixels_per_point).round() as u32,
345- (r.height() * job.pixels_per_point).round() as u32
346- );
347- }
348 gl.painter.clear(dims, job.clear);337 gl.painter.clear(dims, job.clear);
349 gl.painter.paint_and_update_textures(338 gl.painter.paint_and_update_textures(
350 dims,339 dims,
@@ -744,19 +733,7 @@ impl App {
744 return false;733 return false;
745 };734 };
746 let size = gl.window.inner_size();735 let size = gl.window.inner_size();
747- let now = [size.width.max(1), size.height.max(1)];736+ [size.width.max(1), size.height.max(1)] != self.handler.frame_dims
748- if std::env::var_os("VIDYA_DEBUG_RESIZE").is_some() {
749- eprintln!(
750- " check frames={} now={}x{} frame_dims={}x{} -> {}",
751- self.handler.frames,
752- now[0],
753- now[1],
754- self.handler.frame_dims[0],
755- self.handler.frame_dims[1],
756- now != self.handler.frame_dims
757- );
758- }
759- now != self.handler.frame_dims
760 }737 }
761 738
762 /// Close the open pass and throw its output away, presenting nothing.739 /// Close the open pass and throw its output away, presenting nothing.