You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like this is the same issue reported at #307.
Is this actually locked to the screen refresh rate?
Yes that's right, by default the nannou App uses the RefreshSync loop mode which uses the system's FIFO Vulkan present mode for each window's swapchain. The reason for this default is that it's actually the only mode guaranteed to be supported by every platform's swapchain implementation under the Vulkan specification. Normally, there's the option to switch to a fixed rate by switching to the Rate loop mode, e.g.
app.set_loop_mode(LoopMode::rate_fps(60.0));
However, judging by that issue it seems MoltenVK does not yet support this MAILBOX present mode 😱 It may be worth trying this still as it's possible they've implemented the present mode since it was discussed in that issue (I haven't checked). One option for addressing this might be to try to build our own mailbox-style present mode that uses a fixed rate around the FIFO present mode. Alternatively, a better approach might be to wait to address #374 and #408, as after addressing these we would no longer rely on moltenvk and may potentially have access to a proper implementation of MAILBOX through gfx-portability (we'd have to check that gfx supports this to be sure).
should I be using some kind of delta time?
This depends on your use case, but if you find it necessary you can access the delta time through the update: Update argument of the update function, e.g. update.since_last is the duration since the last update and update.since_start is the duration since the app began running.
I am on a 144hz monitor (MSI GS65) and when my mouse is off the window, it seem to
update
slower than when my mouse is over the window space.it seems to happen more than 60 times per second. Is this actually locked to the screen refresh rate?
Is this a known issue? should I be using some kind of delta time?
this happens with all the examples I have loaded as well.
The text was updated successfully, but these errors were encountered: