| 03-08-2008, 06:59 PM | #1 |
Which is faster/cleaner?: using a timer that last .01 seconds to execute a function or using the periodic event for every .01 seconds |
| 03-08-2008, 07:17 PM | #2 | |
Quote:
|
| 03-08-2008, 07:25 PM | #3 |
Ok, but does the periodic event leak? |
| 03-08-2008, 07:30 PM | #4 | |
It depends in what you want, if you need this timer to sart it and never stop it, you can use any option, but if you need to start and stop easily, a timer is the best option. Personally I love to do all my stuff with timers, even when I know that i won't stop them in all the game. About periods, 0.04 is the best option for physic movement, 0.1 for effects over time. Quote:
|
| 03-08-2008, 07:45 PM | #5 |
ok, I switched over to a controlled timer at .04 |
