mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-14 02:38:37 +12:00
rsx/gl/vk: Enable frame skipping
This commit is contained in:
parent
b95ffaf4dd
commit
e9b8f94fb1
10 changed files with 102 additions and 26 deletions
|
@ -45,10 +45,13 @@ void gl_gs_frame::delete_context(void* ctx)
|
|||
delete (QOpenGLContext*)ctx;
|
||||
}
|
||||
|
||||
void gl_gs_frame::flip(draw_context_t context)
|
||||
void gl_gs_frame::flip(draw_context_t context, bool skip_frame)
|
||||
{
|
||||
gs_frame::flip(context);
|
||||
|
||||
//Do not swap buffers if frame skip is active
|
||||
if (skip_frame) return;
|
||||
|
||||
((QOpenGLContext*)context.get())->makeCurrent(this);
|
||||
((QOpenGLContext*)context.get())->swapBuffers(this);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue