Multithreading in Games

I added a second thread to VDrift that does only rendering.  This post on gamedev goes into more detail about how it’s architected.  It seems to work pretty well, although I sometimes get crashes when starting the thing *shrug*.  Anyway, the method by which I’m doing this is with SDL’s threads and a class I set up to give a slightly higher level approach to task-based parallelism.  I’ve attached a header for the class.

parallel_task

Comments are closed.

Dev Journal and Project Hosting