Performance #31
8Observer8
started this conversation in
General
Replies: 1 comment 16 replies
-
@ajitid try to use this: sdl3.SDL_GL_SetSwapInterval(1) # Turn on vertical sync You can add it after the if not context:
print(f"Failed to create OpenGL context: {sdl3.SDL_GetError().decode()}.", flush = True)
return -1
sdl3.SDL_GL_SetSwapInterval(1) # Turn on vertical sync |
Beta Was this translation helpful? Give feedback.
16 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This is a branch of the thread that was started from the post.
As a result of testing the following example in PySDL3 0.9.8b1 + PyOpenGL 3.1.9 API works better on my weak laptop with CPU i3-2330M than on more powerful ajitid's AMD CPU:
main.py
My result:
ajitid's result:
But when we run this C + SDL3 + OpenGL example it works well for ajitid's AMD CPU and my Intel 3000 HD GPU:
My result:
ajitid's result:
I see an issue for my GPU in the example above. GPU is 31.1% in Python and 0% in C.
Beta Was this translation helpful? Give feedback.
All reactions