Open Ceyron opened 5 hours ago
Can you try setting "wgpu::PresentMode::Immediate" to "wgpu::PresentMode::AutoNoVsync" here: https://github.com/tum-pbs/game-physics-template/blob/245163b94eacc53b594940a28fc90dcf4aef0261/src/Simulator.cpp#L80
see https://docs.rs/wgpu/latest/wgpu/enum.PresentMode.html#variant.AutoNoVsync
wgpu::PresentMode::AutoNoVsync
gives me
[build] /home/felix/Downloads/game-physics-template/src/Simulator.cpp: In member function ‘void Simulator::onGUI()’:
[build] /home/felix/Downloads/game-physics-template/src/Simulator.cpp:85:60: error: ‘AutoNoVsync’ is not a member of ‘wgpu::PresentMode’
[build] 85 | renderer.setPresentMode(wgpu::PresentMode::AutoNoVsync);
[build] | ^~~~~~~~~~~
[build] make[2]: *** [CMakeFiles/Template.dir/build.make:146: CMakeFiles/Template.dir/src/Simulator.cpp.o] Error 1
[build] make[1]: *** [CMakeFiles/Makefile2:187: CMakeFiles/Template.dir/all] Error 2
[build] make: *** [Makefile:91: all] Error 2
Could it be that this is a feature only supported by a more recent version of WebGPU?
I compiled the main branch, executed the program and unticked the
Limit FPS
under the Rendering tap in the GUI. Then the program crashesMy OS is Arch Linux. System info from CMAKE configure: