RichardHarr
Programmer
I'm using DirectShow to play back movie files (eventually will have live input as well). I then perform some pretty cpu intensive MMX ops on each frame before display. I was finding that even though it was running at 20 fps the actual video image was updating unevenly at around 4 or 5 fps.
Eventually I discovered that putting my process to Sleep for about 0.02 seconds smoothed out the playback by giving the DirectShow process more time to do its thing.
This isn't really a good solution, its approximate and wasteful and the optimum amount of time to Sleep will vary from machine to machine.
Just wondering if anyone has alternative solutions? BTW I haven't altered any process priorities.
Eventually I discovered that putting my process to Sleep for about 0.02 seconds smoothed out the playback by giving the DirectShow process more time to do its thing.
This isn't really a good solution, its approximate and wasteful and the optimum amount of time to Sleep will vary from machine to machine.
Just wondering if anyone has alternative solutions? BTW I haven't altered any process priorities.