Thread: arrow keys
View Single Post
  #15  
Old 10-26-2002, 02:10 AM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
Quote:
Originally posted by Kaimetsu


I'd hardly say 'far' more efficient. None of us really know how Graal's internal workings are organised. I could argue that the use of event flags like keypressed takes more cpu time because it requires Graal to search the flag list, for example, but either way the difference in efficiency is going to be negligible.
I think it totally depends on the situation...

If you already need to use a timeout loop for something else... just add the key checks to it...


If you don't have any timeouts... don't bother with one. Just use keypressed...
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote