mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-23 06:11:46 +00:00
[client] our source is vairable frame rate, we can't double buffer at all
This commit is contained in:
parent
04f7800df4
commit
dd0930d265
2 changed files with 3 additions and 3 deletions
|
@ -661,6 +661,8 @@ int run()
|
||||||
FcPatternDestroy(pat);
|
FcPatternDestroy(pat);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 0);
|
||||||
|
|
||||||
state.window = SDL_CreateWindow(
|
state.window = SDL_CreateWindow(
|
||||||
"Looking Glass (Client)",
|
"Looking Glass (Client)",
|
||||||
params.center ? SDL_WINDOWPOS_CENTERED : params.x,
|
params.center ? SDL_WINDOWPOS_CENTERED : params.x,
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
#include "memcpySSE.h"
|
#include "memcpySSE.h"
|
||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
|
|
||||||
#define BUFFER_COUNT 2
|
#define BUFFER_COUNT 1
|
||||||
|
|
||||||
#define FRAME_TEXTURE 0
|
#define FRAME_TEXTURE 0
|
||||||
#define FPS_TEXTURE 1
|
#define FPS_TEXTURE 1
|
||||||
|
@ -125,7 +125,6 @@ bool lgr_opengl_initialize(void ** opaque, const LG_RendererParams params, const
|
||||||
}
|
}
|
||||||
|
|
||||||
SDL_GL_SetSwapInterval(0);
|
SDL_GL_SetSwapInterval(0);
|
||||||
glDrawBuffer(GL_FRONT);
|
|
||||||
|
|
||||||
// check if the GPU supports GL_ARB_buffer_storage first
|
// check if the GPU supports GL_ARB_buffer_storage first
|
||||||
// there is no advantage to this renderer if it is not present.
|
// there is no advantage to this renderer if it is not present.
|
||||||
|
@ -645,7 +644,6 @@ bool lgr_opengl_render(void * opaque)
|
||||||
lgr_opengl_draw_mouse(this);
|
lgr_opengl_draw_mouse(this);
|
||||||
if (this->fpsTexture)
|
if (this->fpsTexture)
|
||||||
glCallList(this->fpsList);
|
glCallList(this->fpsList);
|
||||||
|
|
||||||
glFlush();
|
glFlush();
|
||||||
|
|
||||||
++this->frameCount;
|
++this->frameCount;
|
||||||
|
|
Loading…
Reference in a new issue