Commit Graph

4 Commits

Author SHA1 Message Date
Matthew Gordon 35785dbf01 Redraw continuously instead of busy-waiting at 100% CPU
Previously, Pteropus would only redraw when the window was resized, but
it would continuously poll for events, keeping a CPU core at 100% even
when not doing anything.

It now automatically queues a new RedrawRequested event after each draw
finishes. The view() call will also limit the frame rate to the video
refresh rate and block when there are more than three frames queued up,
so we're not busywaiting any more.
2024-11-14 20:51:23 -04:00
Matthew Gordon b870e03812 Draw unlit cube when DEM is loaded
Reconfigure the pipeline to draw an unlit (solid colour silhouette) cube
when a DEM is loaded. The fragment shader of this cube will be what
raytraces the DEM.
2024-11-14 12:51:24 -04:00
Matthew Gordon 71b05c31a2 Load f32 tiff into DEM, started BVH, other changes 2024-11-13 17:14:44 -04:00
Matthew Gordon 5dfdd3e927 Stub in basic wgpu framework; just draw triangle right now
Start again using WGPU with both native and WebAssembly. Just draws a
triangle right now.
2024-07-12 17:27:27 -03:00