2D Physic Engine what perfermance?

Hi all, my name's Francesco, my first post here :smiley:

I'm writing a little 2D physic engine in C for fun, and in the simulator it always runs smootly at 30 fps, no matter how many object I have.

I have no real Playdate, so I don't have any idea of the performace, that could be really bad, I known. I don't care too much because I'm doing it to learn how to implement a physic simulation, anyway it would be great if the it could move a few objects :D!!

I attach some videos of the developing progresses :slight_smile:

Update 1.

Update 2.

Update 3.

Update 4.

3 Likes

If you want me to test it, plz attached a zipped pdx built for hardware

1 Like

As I understand it, lua performance is somewhat throttled, but C performance is basically at the same speed as your PC, more or less. It's definitely worth testing this on device to see what real world performance looks like.

Nice job Frank, it seems you do some nice progress :slight_smile:

@robinmaypanpan The performance in C are not the same as on PC. C is more performant than Lua but both will not run as fast as on PC simply because it is not reliable to emulate the playdate performance in the simulator.

As Nino suggested, the best is to share playdate builds so that people can try and record it.

For reference Dustin already ported box2d lite on playdate and this is pretty fun to use in a game even though it can handle only few objects at a time.

I've done a bit of testing and it seems like Chipmunk2D C lib handles more objects than playbox but I haven't done extensive testing. Considering switching to it for Playmaker at some point.

Just want to +1 this. Performance in the simulator is not indicative of device performance.