|
Post by hansschmucker on Apr 19, 2008 18:25:51 GMT 1
Hi everybody... sorry for not being around more, but work is really keeping me busy and given my tiny attention span, I usually try to avoid any distraction (the fact that I should be working right now should give you a pretty good idea how tiny my attention span really is).
Anyway... Once more I'm really just posting because I need a feature.
A long time ago, event processing was disabled in LJP in order to squeeze these last few cycles out of every CPU and also to reduce incompatibilities with third-party launchers.
Well, now I need it back... at least as an option. The problem is that the Centro (that's what I'm using by now) will not be able to notify me of calls while LJP is blocking all event handling, which basically means that I can't play LJP (or Doom, Quake, Hexen and Heretic for that matter) during daytime.
Just a simple event loop during frame update (of course, not processing digitizer and button events) should be all that's needed, right? That and a pref to enable/disable it, so that non-smartphone can still get the best performance.
Hans
|
|
|
Post by Tinnus on Apr 19, 2008 23:21:56 GMT 1
..or it could check events at something like every 30 frames or so, for a smaller speed impact. That's already half a second which is small
|
|
|
Post by icefire on Apr 19, 2008 23:34:20 GMT 1
How about every 60 frames? Thats one second with no frameskip, but with frameskip 4 its 4 secs...but still short enough to answer.
|
|
|
Post by Tinnus on Apr 19, 2008 23:39:01 GMT 1
No, 60 frames is always 1 second Frameskip doesn't skip the frames, only drawing. But the CPU, sound, etc are still happening so 60 frames for the emulator is one second regardless of skipping.
|
|
|
Post by icefire on Apr 19, 2008 23:41:44 GMT 1
Even better!
|
|
|
Post by hansschmucker on Apr 20, 2008 0:42:23 GMT 1
I'm not sure I remember how events are invalidated on PalmOS... if they are not (which would make sense), then wouldn't that mean that processing every 60 frames would render 59 frames at no-event-processing speed and 1 at normal speed, causing heavy stuttering every second? Wouldn't it be better to spread it out evenly over all frame updates, even if the overhead is slightly bigger because there are more calls into the event system?
|
|
|
Post by Tinnus on Apr 20, 2008 1:53:31 GMT 1
Really, have to try and see. But it shouldn't be noticeable in any case... I mean, there can't be several system events every second, we're only talking about stuff here like incoming calls/SMS, low battery, alarms, etc, which happen "rarely" conseidering a once-per-second check. So even if I do it once per second it's still fast is the queue is empty.
We tell the OS to not put key/pen events in the queue anyway so most of the time it will be already empty (instead of having to ignore items manually).
|
|
|
Post by metaview on Apr 23, 2008 21:53:07 GMT 1
|
|