Closed caiiiycuk closed 2 years ago
Why on earth would cross
take a lot of time?
Do you have a link? I'd profile it on FF.
There are two places that I changed in game to work, maybe they affected performance.
Constant delta 16, maybe it's too much or too small?
2) Not in PR (https://github.com/kvark/vange-rs/blob/HEAD/bin/road/game.rs#L508) I changed spin_ver to 1.0, because I didn't get input from keyboard to work yet. Maybe this value is too high and physics goes crazy?
Regarding to link, yes I can do it, but I want to add true keyboard support first (maybe it can help to understand why it so).
Problem was solved when I pass real delta time
What delta were you passing?
https://github.com/caiiiycuk/vange-rs/blob/vange-rs-web/bin/boilerplate.rs#L267 Now I pass the real time delta, before I passed 16 which is wrong
~900 ms per each frame, 97% of time spent in
physics:step
function