简体   繁体   中英

Nape vs Box2d ( Actionscript 3 physics engines )

I've been testing performance of the Nape physics engine vs the Box2D AS3 and Alchemy ports and it seems like Nape is a lot slower than both of them. I have read in a few places( here and here ) that it is supposed to be faster. Has anyone done testing between the two and if so what were your results?

在与Nape的创造者交谈之后,他告诉我Nape在移动设备上运行缓慢,这与我的目标设备类似,因为它使用了内衬。

Hey, found this question from the link to my site. I've been a Box2D AS3, and then a Box2D Alchemy user for a year or so, and I can say with confidence that Nape blows Box2D performance out of the water. My early tests have shown that while Box2D can have 100-150 boxes stacked, Nape can have 500+ with the same performance.

In my recent testing, I can have 1000 bodies in the scene, and I see more lag from display than physics calculations. Default settings should be fine; just make sure you're using a similar physics scale!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM