Fix bullet step and other changes

delta was using double instead of int64 which may have caused some issues.

Also, graphics and physics use now the same thread and run in the right order.

I moved the simulation stepping in the HandleEvents function to respect the logic of the scheduler because it is not read-only and modifies the data.