Two.js: Any performance test?

Created on 31 Jan 2018  路  8Comments  路  Source: jonobr1/two.js

It will be very good to have something like bunnymark and direct comparison with Pixi and other WebGL wrappers....

enhancement question

Most helpful comment

All 8 comments

That would be great to have. The closest thing to this would be the Particle Sandbox. You can add the FPS meter on top. Full disclosure for doing applications in the way bunnymark example works then Pixi has far faster performance than Two.js.

Two.js is better suited for dynamically creating and modifying vector shapes in real-time.

I think bunnymark analog can be implemented in few lines of code. Maybe I will make it if I will have free time)
But I agree with you what Two.js is not a sprite engine and direct comparison with Pixi is not correct.
But any way Two.js in my project show very good performance with several thousands of rectangles.馃憤

Indeed! That being said.., Two.js now does support bitmap images so it should be quite straightforward to make a bunnymark example. I'll add this to my list of examples when I finish up the final changes to v0.7.0. Thanks for reporting!

This is awesome @nowox. Thanks for sharing. What version of Two.js is this? Also, what is two-tweak? What did you tweak?

This is based on v0.5.0. Curious to see how it runs on ~v0.7.0. Now in 2019 the performance has improved without doing anything specifically:

Screen Shot 2019-03-28 at 8 42 18 AM

I also, now see what tweaks can be made in the Two.Matrix class to speed things up. Thanks!

These diagnostics are nice, thank you. It would be nice to see similar benchmarks of the same project implemented in SVG.js, and vanilla js, shown in a side by side comparison.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mariomeraz picture mariomeraz  路  6Comments

Muini picture Muini  路  7Comments

sami8github picture sami8github  路  3Comments

Sudhanshu4122 picture Sudhanshu4122  路  6Comments

narisuzu picture narisuzu  路  7Comments