Less than 1 Millisecond Timing
5 posts
• Page 1 of 1
Less than 1 Millisecond Timing
How can I run code at an interval of less than one millisecond? The Ti Lua API only allows me to use the timer event at an interval of greater than 10 milliseconds, or the timer.getMilliSecCounter() function which is still not a small enough interval.
-
Brindlefly
Niveau 2: MI2 (Membre Initié)- Posts: 3
- Joined: 31 May 2015, 21:37
- Gender:
- Calculator(s):→ MyCalcs profile
Re: Less than 1 Millisecond Timing
You definitively can't.
Anyway, if you updated the screen quicker than 100Hz it wouldn't work as all the calculations would take more time than your period
(and that's often the case with a period of 0.01 s only).
Anyway, if you updated the screen quicker than 100Hz it wouldn't work as all the calculations would take more time than your period

Last edited by pierrotdu18 on 31 May 2015, 21:50, edited 1 time in total.
Bonjour
-
pierrotdu18Premium
Niveau 15: CC (Chevalier des Calculatrices)- Posts: 975
- Joined: 07 Nov 2013, 20:18
- Location: Paris V
- Gender:
- Calculator(s):→ MyCalcs profile
- Class: MP* Lycée Henri IV
Re: Less than 1 Millisecond Timing
So is less than one millisecond timing a ndless feature? There are some registers in the Gameboy Classic that increment faster than a millisecond, which makes me believe that the emulators can update faster than a millisecond or they just convert that calculation to one done every millisecond.
-
Brindlefly
Niveau 2: MI2 (Membre Initié)- Posts: 3
- Joined: 31 May 2015, 21:37
- Gender:
- Calculator(s):→ MyCalcs profile
Re: Less than 1 Millisecond Timing
Oh, all gets different if you use Ndless. The C/C++ languages don't work as Lua: in Lua you have a timer that updates every x seconds, and in C/C++ you have no timer, just a loop; so, it is way faster and you even sometimes have to slow it down 

Last edited by pierrotdu18 on 31 May 2015, 22:04, edited 1 time in total.
Bonjour
-
pierrotdu18Premium
Niveau 15: CC (Chevalier des Calculatrices)- Posts: 975
- Joined: 07 Nov 2013, 20:18
- Location: Paris V
- Gender:
- Calculator(s):→ MyCalcs profile
- Class: MP* Lycée Henri IV
Re: Less than 1 Millisecond Timing
Darn, thanks for the help anyways.
-
Brindlefly
Niveau 2: MI2 (Membre Initié)- Posts: 3
- Joined: 31 May 2015, 21:37
- Gender:
- Calculator(s):→ MyCalcs profile
5 posts
• Page 1 of 1
Who is online
Users browsing this forum: ClaudeBot [spider] and 5 guests