For some reason, if you only specify the _draw function but not the _update, it is not executed.
Example:
function _update() end f=0 function _draw() cls() f+=1 print(f,0,0) end |
Renaming _update to, say, _update1 will stop the program from drawing anything.
Most often you'll have both functions at once, but this bugs me a little.
P#11855 2015-07-26 17:09 ( Edited 2015-07-27 11:45)
Oh yeah, I noticed this too, but forgot to say anything here.
P#11876 2015-07-26 23:50 ( Edited 2015-07-27 03:50)
I wonder if _draw() is an implicit call at the end of _update() in the current implementation? Complete with the conditional every-other-_update performance adjustment if the system isn't keeping up. Hence: no _update, no triggering of the _draw callback?
P#11893 2015-07-27 07:45 ( Edited 2015-07-27 11:45)
[Please log in to post a comment]