Is there a reason why no 3D APIs seem to tie their sync notifications into OS notifications? Where is wglSyncMessage()?
-
-
_on what_? That's the whole problem. I need to know when I can start reusing the memory from the sync'd task.
1 reply 0 retweets 0 likes -
Replying to @cmuratori @nlguillemot
So you want to do "wait on any IO completion and any GL completion" and service whichever happens first.
1 reply 0 retweets 0 likes -
Replying to @cmuratori @nlguillemot
But there is no way to do that with wgl :( There really just needs to be wglSyncIOCompletion(sync, port).
1 reply 0 retweets 0 likes -
Replying to @cmuratori @nlguillemot
This would solve pretty much all the problems. For completeness there should also be wglSyncSemaphore(sync, handle).
1 reply 0 retweets 0 likes -
Replying to @cmuratori @nlguillemot
Without those, you're always going to be oversubscribed by at least one thread, probably more than one.
1 reply 0 retweets 0 likes -
Replying to @cmuratori @nlguillemot
Because assuming you have two frames in the pipe, that's two extra threads in the app that occasionally wake up :(
1 reply 0 retweets 0 likes -
Replying to @cmuratori @nlguillemot
Add that to the fact that Windows helpfully mandates that you have one oversubscribed thread at all times for windows msg...
1 reply 0 retweets 0 likes
... and it gives you an idea of just how not serious Win32 is as a multithreading environment at this point :(
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.