godotengine / godot-demo-projects

Demonstration and Template Projects
https://godotengine.org
MIT License
5.65k stars 1.58k forks source link

3D Anti-Aliasing, added 'FPS Counter', VSync, Limit FPS #968

Closed Alex2782 closed 10 months ago

Alex2782 commented 11 months ago

To see what effect the settings have.

image

Alex2782 commented 11 months ago

I will also check No FPS Limit (V-Sync), when disabled my FPS does not go higher than 60.

In project graphics_settings I have seen that my FPS display can go above 60 when VSync is disabled.

    if index == 0: # Disabled (default)
        DisplayServer.window_set_vsync_mode(DisplayServer.VSYNC_DISABLED)
    elif index == 1: # Adaptive
        DisplayServer.window_set_vsync_mode(DisplayServer.VSYNC_ADAPTIVE)
    elif index == 2: # Enabled
        DisplayServer.window_set_vsync_mode(DisplayServer.VSYNC_ENABLED)
Calinou commented 11 months ago

I will also check No FPS Limit (V-Sync), when disabled my FPS does not go higher than 60.

This is expected on a 60 Hz display. We could display the detected display refresh rate in the option's text. We could also add an uncapped FPS option with V-Sync disabled as the first option in the list (the default would then be the 2nd option).

Alex2782 commented 11 months ago

maybe like graphics_settings @Calinou ?

https://github.com/godotengine/godot-demo-projects/assets/41921395/f2511eec-11d9-460a-a6a1-c73422bcdf82