Skip to main content

All Questions

2 votes
0 answers
2k views

Multithreaded Game Loop

I'm trying to implement a multithreaded game loop. I already did that but had to use a few locks for that, which ruined the performance. After researching a bit I came up with this idea: Instead of ...
user avatar
1 vote
1 answer
1k views

Qt - Move OpenGL Rendering from main thread to a different thread

I'm aware of the fact that QWidgets cannot be moved from the main thread to another thread in Qt. I have a main GUI that has three different QGLWidgets that render different OpenGl content. As ...
Marc's user avatar
  • 857
1 vote
2 answers
8k views

OpenGL multiple rendering contexts in one window

Ok I have a program with a number of threads (loaded from DLLs at run-time). Each thread has a separate OpenGL rendering context. What I want to do is, from the main thread, be able to draw the frame ...
user1433205's user avatar
-1 votes
1 answer
1k views

Multithreaded Game Loop Rendering/Updating (boost-asio)

So I have a single-threaded game engine class, which has separate functions for input, update and rendering, and I've just started learning to use the wonderful boost library (asio and thread ...
Gatleos's user avatar
  • 43
0 votes
1 answer
283 views

openGL volume rendering and display update in different thread

I am using openGL and "freeglut" library for volume rendering and display. In the main thread I initialize the openGL window, and then acquire volume data frame by frame, the volume rendering is done ...
user1588794's user avatar
24 votes
5 answers
68k views

Multithreaded Rendering on OpenGL

I have a multithreaded application, in which I'm trying to render with different threads. First I tried to use the same Rendering Context between all threads, but I was getting NULL current contexts ...
filipehd's user avatar
  • 930
1 vote
2 answers
3k views

Multi-threaded Rendering in OpenGL

Is this even possible? Im learning DirectX atm and am trying to apply some of what i've learnt to OpenGL. I know you can have multi-threaded rendering in DirectX using deferred contexts, but i didnt ...
RobVoisey's user avatar
  • 1,083
4 votes
2 answers
1k views

JOGL - does OpenGL use the AWT thread to render graphics?

I am making a simple program with Java OpenGL (jogl). In the display() method I am printing the name of the thread and the output says it is the AWT thread. Doesn't OpenGL use its own thread?
Rox's user avatar
  • 2,927
2 votes
2 answers
3k views

QGLWidget's paintGL() method called from which Qt thread?

suppose I use the QGLWidget's paintGL() method to draw into the widget using OpenGL. After the Qt called the paintGL() method, it automatically triggers a buffer swap. In OpenGL, this buffer swap ...
DyingSoul's user avatar
  • 231