Very nice. I've abstracted my 2d game's physics so I can swap between PhysX and Box2d, because PhysX was FASTER! I figured that couldn't possibly last. Finally!
@melvmay
4 күн бұрын
@@Octamed Yeah, you should give Box2D v3.1 a spin, it scales really well across cores. Erin did a great job here.
@MrHandsy
4 күн бұрын
Use using ECS and burst in the background somehow to speed up performance? Also, if you could enable live FPS and possibly frame times, that'd be swell. I want to actually see performance well.
@melvmay
4 күн бұрын
@@MrHandsy No ECS or Burst needed. This is Box2D doing the heavy lifting. I’d have to upload another video to show you the stats, not sure of the point doing that. This was running at 60fps, not sure what the simulation step-time was. In the end, this is a powerful PC but the point is it’s using all the cores so scales well unlike Box2D v2.4
@melvmay
4 күн бұрын
Ran it again this morning, here's the profiler. 5.92ms for the simulation. The debug-drawer is fast but it's dominating the total frame-time: gyazo.com/3f53d4af2f39548689ad945366a1fbd8 Also, it should be mentioned that this is with 4 sub-steps so the joints are effectively running at 240Hz. Without the DebugDrawer but still in the Editor so lots of extra overhead there: gyazo.com/71ba864928c21445cabed15709a67458
Пікірлер: 5