Skip to content

Commit

Permalink
UPBGE: Fix for Vsync set-up
Browse files Browse the repository at this point in the history
Thanks to @youle31 for code
  • Loading branch information
lordloki committed Apr 29, 2020
1 parent 511de5c commit 9ec291e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/gameengine/Ketsji/KX_KetsjiEngine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,9 @@ void KX_KetsjiEngine::Render()

BeginFrame();

// Set vsync one time per frame
m_canvas->SetSwapControl(m_canvas->GetSwapControl());

for (KX_Scene *scene : m_scenes) {
// shadow buffers
RenderShadowBuffers(scene);
Expand Down

1 comment on commit 9ec291e

@youle31
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Please sign in to comment.