Open main menu

CDOT Wiki β

Changes

FSOSS 2010/processing.js/timing

2 bytes removed, 16:11, 27 October 2010
no edit summary
// Regardless of lag, garbage collection or rendering speed,
// position will increase by the correct velocity.
 
if(wasteCycles){
for(int i = 0; i < 10000; i++){
have elapsed since last draw
*/
 
float getDelta(){
float millisElapsed = millis() - deltaTimer;
1
edit