Advertisement

Multithread DirectX

Started by February 26, 2000 11:31 PM
0 comments, last by jwalker 25 years ago
I have a slight newbie problem... I have to create a program that uses 8 threads at the same time. The problem is 6 of the threads are using Direct draw or direct 3d. The problem is the ddraw surfaces and only be blitted on by 1 thread at a time. If not the surface will be corrupted... Can anyone give me tips or pointers on how to sychronise the threads so that the FPS will remain high but no corruption of dd surfaces....I am currently using Visual C++ 6 with Direct X SDK 6.1
You can use Mutexes to synchronise your threads. You create them with CreateMutex().

Read this article. It speaks about multithreading and DDraw surfaces.

This topic is closed to new replies.

Advertisement