Re: to the Win32Lib Team
- Posted by Derek Parnell <ddparnell at bigpond.com> Oct 31, 2002
- 432 views
Not a bad suggestion, however it would have to be done such that it didn't take up too much CPU cycles when not set. Actually what would be an easy enhancement for Euphoria would if a call_proc(-1) and call_func(-1) were to be quietly treated as a NOP. This would not break existing code and speed up a lot of win32lib processing (hint, hint, Robert). I'll give it some serious thought. ---------------- cheers, Derek Parnell ----- Original Message ----- From: <xerox_irs at lvcm.com> To: "EUforum" <EUforum at topica.com> Sent: Thursday, October 31, 2002 5:47 PM Subject: to the Win32Lib Team > > i think it would be a good idea to add an OnIdle event to win32lib, for use > in 3d and high frame rate stuff. > adding 3 line to the existing librairy to accomidate > these two lines at the top somewhere > line 1---------->global atom ONIDLE > line 2------------>ONIDLE=-1 > > > while Flag!=0 > and ActiveEL[el]=0 > and vWinMainState=kStarted > do > getRC=w32Func(xGetMessage,{msg,hWnd,0,0}) > if getRC=0 > or getRC=-1 > then > exit > end if > w32Proc(xTranslateMessage,{msg}) > w32Proc(xDispatchMessage,{msg}) > Flag-=inc > this line in the translate dispatch loop-------------> if ONIDLE !=-1 then > call_proc(ONIDLE) end if > > end while > > > >