renderer_vulkan: Disable FIFO when refresh rate is lower than ~60hz or Apple low power mode is enabled (#1193)

* renderer_vulkan: Disable FIFO when refresh rate is lower than ~60hz

Also disables FIFO when Apple low power mode is enabled, as it can limit the application framerate to 30fps

* renderer_vulkan.cpp: Put `IsLowRefreshRate` into anon namespace + make static
This commit is contained in:
OpenSauce
2025-06-29 21:06:44 +01:00
committed by GitHub
parent a15af9b550
commit df3c0c18e4
11 changed files with 113 additions and 24 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ puts 'done'
print 'Checking files...'
issue_files = []
branch_changed_files.each do |file_name|
if file_name.end_with?('.cpp', '.h', '.kt', '.kts') and File.file?(file_name)
if file_name.end_with?('.cpp', '.h', '.kt', '.kts', '.m', '.mm') and File.file?(file_name)
file_content = File.read(file_name, mode: 'r:bom|utf-8')
if not file_content.start_with?(license_header)
issue_files.push(file_name)