Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vulkan: FPS is always twice the refresh rate of the screen on macOS #64475

Closed
dortamiguel opened this issue Aug 15, 2022 · 7 comments
Closed

Comments

@dortamiguel
Copy link

Godot version

4.0.alpha14.official

System information

macos monterey 12.5

Issue description

When displaying the fps of the game I see twice the framerate that should be when doing vsync, for example in a 60hz monitor it will tell its going at 120fps, and in a 144hz monitor it will tell is going at 288fps.

This happens only on macos when using moltenvk

Steps to reproduce

You can create an new label and just display the fps counter

func _process(delta):
	$FPS_COUNTER.text = str(Engine.get_frames_per_second())

Minimal reproduction project

No response

@Calinou Calinou changed the title [macos] Vulkan: fps is always twice the refresh rate of the screen Vulkan: FPS is always twice the refresh rate of the screen on macOS Aug 16, 2022
@Calinou Calinou added this to the 4.0 milestone Aug 16, 2022
@Calinou Calinou moved this to To Assess in 4.x Priority Issues Aug 16, 2022
@bruvzg
Copy link
Member

bruvzg commented Aug 30, 2022

Seems like MoltenVK bug - KhronosGroup/MoltenVK#1407

@Calinou
Copy link
Member

Calinou commented Sep 16, 2022

For reference, this issue was also reported in #56355 (comment).

@Calinou
Copy link
Member

Calinou commented Nov 15, 2022

Fixed on macOS 13.0 (this is a macOS bug): KhronosGroup/MoltenVK#1407

#66367 will provide a workaround for older macOS versions.

@acadiansith
Copy link

This may have been fixed for the other renderers, but I am experiencing this issue in the Vulkan (Compatibility) renderer on macOS 13.4.1. On my 60 Hz display, the Forward+ and Mobile renderers cap correctly at 60 FPS, but the Compatibility renderer is double at 120 FPS. (see #79569).

@bruvzg
Copy link
Member

bruvzg commented Jul 18, 2023

Vulkan (Compatibility)

Compatibility is OpenGL not Vulkan.

@acadiansith
Copy link

Just going off of what Help > Copy System Info says:

Godot v4.1.stable - macOS 13.4.1 - Vulkan (Compatibility) - Apple M1 - Apple M1 (8 Threads)

@Calinou
Copy link
Member

Calinou commented Jul 18, 2023

Just going off of what Help > Copy System Info says:

The Compatibility rendering method being mislabeled as using Vulkan is a known issue, which is being fixed in some PR (I can't find it right now).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

4 participants