1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Merge pull request #96439 from darksylinc/matias-TheForge-pr03-rebased

Add Swappy & Pre-Transformed Swapchain
This commit is contained in:
Clay John
2024-10-29 12:34:40 -07:00
committed by GitHub
23 changed files with 1064 additions and 14 deletions

View File

@@ -6553,6 +6553,12 @@ void RenderingDevice::finalize() {
ERR_FAIL_COND(reverse_dependency_map.size());
}
void RenderingDevice::_set_max_fps(int p_max_fps) {
for (const KeyValue<DisplayServer::WindowID, RDD::SwapChainID> &it : screen_swap_chains) {
driver->swap_chain_set_max_fps(it.value, p_max_fps);
}
}
RenderingDevice *RenderingDevice::create_local_device() {
RenderingDevice *rd = memnew(RenderingDevice);
rd->initialize(context);