New answers tagged multithreading
0
From the Blue Book (OpenGL Superbible 7th ed., pp. 662f.):
You can have multiple contexts and share data between them, but that isn't very effective. The approach sketched in the other answer (one render thread - mutliple data generation threads) is surely the best practice.
You can have buffer objects to your application's needs and pass pointers around ...
0
OpenGL is not multithreaded. All your GL commands must run in the same thread in which the GL context was created: it is not shareable between threads.
Any attempt to share the context between threads will lead to undefined behaviour.
Your high ms/frame time is due to everything being done on a single thread.
I propose two practical solutions to your problem:...
Top 50 recent answers are included
Related Tags
multithreading × 257c++ × 39
java × 34
c# × 32
unity × 30
opengl × 28
architecture × 19
xna × 18
android × 15
multiplayer × 15
game-loop × 14
loading × 12
performance × 10
server × 10
rendering × 8
networking × 8
optimization × 8
mmo × 8
coroutines × 8
input × 7
physics × 6
lwjgl × 6
synchronization × 6
animation × 5
directx × 5