Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DirectShow Playback not smooth

Status
Not open for further replies.

RichardHarr

Programmer
Oct 8, 2002
1
0
0
AU
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top