🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Multithread DirectX

Started by
0 comments, last by jwalker 24 years, 4 months 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
Advertisement
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