Sprite.js: HTML5 framework for creating efficient animations in browsers
1–10 of 17 posts
Re: Sprite.js: HTML5 framework for creating efficient animations in browsers
#2 this.tick_duration = 25;
....
this.now = new Date().getTime();
// Drawing...
this.time_to_paint = (new Date().getTime()) - this.now;
this.load = Math.round((this.time_to_paint / this.tick_duration) * 100);Re: Sprite.js: HTML5 framework for creating efficient animations in browsers
#3I like how he can fall off the ledge into an infinite drop.
Re: Sprite.js: HTML5 framework for creating efficient animations in browsers
#4I was a bit curious what exactly this "system load" was. Turns out it's a ratio between the time the browser takes to draw the particles and the frequency at which it is supposed which to draw. this.tick_duration = 25; .... this.now = new Date().getTime(); // Drawing... this.time_to_paint = (new Date().getTime()) - this.now; this.load = Math.round((this.time_to_paint / this.tick_duration) * 100);
Re: Sprite.js: HTML5 framework for creating efficient animations in browsers
#5Demo: http://batiste.dosimple.ch/sprite.js/test_input.html I like how he can fall off the ledge into an infinite drop.
Re: Sprite.js: HTML5 framework for creating efficient animations in browsers
#6I was a bit curious what exactly this "system load" was. Turns out it's a ratio between the time the browser takes to draw the particles and the frequency at which it is supposed which to draw. this.tick_duration = 25; .... this.now = new Date().getTime(); // Drawing... this.time_to_paint = (new Date().getTime()) - this.now; this.load = Math.round((this.time_to_paint / this.tick_duration) * 100);
Re: Sprite.js: HTML5 framework for creating efficient animations in browsers
#7Re: Sprite.js: HTML5 framework for creating efficient animations in browsers
#8Re: Sprite.js: HTML5 framework for creating efficient animations in browsers
#9Re: Sprite.js: HTML5 framework for creating efficient animations in browsers
#10Curious that Canvas rendering is so much slower / causes more load than the HTML backend, at least for me. Anyone know why?