Posted: Thu Feb 09, 2006 3:05 pm
In PB4 it uses a parameter to indicate a "waint untill" time almost the sam e in the delay() function but goes really back to windows. But using the WaitWindow() function the usage drops from 100% to around 30% meaning the delay() uses 70% of the time?!?! I suspect the delay() is "in house" so cpnsuming all the proccessor cycles... Will research more, later...va!n wrote:What should WaitWindowEvent(2) do??? This command dont use/need any arguments! So i dont understand the "2"... In the original effect code i dont used any ClearScreen(), because the complete screen will be redrawed each frame, so i didnt used ClearScreen() .. Delay(1) was used because i dont wanted 100% CPU ussage...Jan Vooijs wrote: Note the " WaitWindowEvent( 2)" and removal of "; ClearScreen(0)" and the "Delay(1)". But the program stops if the mouse is NO longer on the window (side effect)...This version runs about 30% and still NO stutter!!! I even can play a DVD while this litle demo version runs...
Hope this helps....