#Un-limit framerate

18 messages · Page 1 of 1 (latest)

drowsy jackal
#

I noticed that when I was seeing how high my framerate could get, it seemed limited to 60fps, is there a way to un-cap this?
(Perhaps there's vsync enabled by default?)
I found this issue talking about a way to limit framerate, but it's open, even though the framerate seems limited?
Any help is appreciated.

fallow sandal
#

Vsync is enabled by default, its part of the window settings

drowsy jackal
#

How would I access the window settings?

fallow sandal
#

Part of plugin setup iirc

fringe bronze
#

Check this example, it has some window settings

drowsy jackal
#

I've figured out

DefaultPlugins.set(WindowPlugin {
            primary_window: Some(Window {
                present_mode: bevy::window::PresentMode::AutoNoVsync,
                ..Default::default()
            }),
            ..Default::default()
        })

testing it now

#

seems to work

#

as long as there are no hidden side effects 😅

fringe bronze
drowsy jackal
#

curiously enough, even with unlimited framerate, neither my CPU nor GPU are fully utilized

#

makes me wonder what is limiting it

fallow sandal
#

I would generally consider that a good thing?

drowsy jackal
#

yes, but no?

#

my goal right now is to see how much FPS bevy can give me, if given all my resources

fallow sandal
#

fps is really not a good metric for performance. If you are interested in bench-marking bevy, id' recommend (a) doing it under load with a stress test like our many_cubes example and (b) using an external profiler like tracy

#

it's also possible you may have an additional cpu tick cap enabled.

drowsy jackal
#

What does 'additional cpu tick tap' mean?