Skip to main content
gamedev.net
🔒 Locked

force thread affinity

Started by supagu 0 replies 600+ views
Original Post
supagu
supagu
Right i've got a game im working on. At home it works fine (I have a single core CPU). When i try out my game at work, it justs goes skitso, it just doesnt run consistently, it takes ages to load and generally sucks. This can be resolved by forcing it to run on a single thread. Is there a way I can force it to a single CPU in code (im using C++ in windows xp)?
rklaffehn
rklaffehn
Yes, there is a way to do such a thing...

Check out

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/multiple_processors.asp

for an overview of what Windows can do for you.
God is real... unless declared integer.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.