My own action adventure engine

Showcase your libraries, tools and other projects that help your fellow love users.
User avatar
Xkeeper
Prole
Posts: 40
Joined: Wed Aug 04, 2010 2:49 am
Location: Henderson, Nevada, US
Contact:

Re: My own action adventure engine

Post by Xkeeper »

bartbes wrote:The solution to that physics problem is running physics multiple times in smaller timesteps, not not using dt.
The problem is, let's say Physics is taking too long.

Your game misses a frame update; easy enough, run Physics twice to catch up (since high dt = major errors or crashes).

But uh oh, you just nearly doubled the time it takes physics to update; so you skip more frames, and have to run it more often to catch up, until eventually it gets ridiculous.

Sure, you can get around it by doing a bunch of shit to limit dt-catchups to sensible values and all that other crap, but if you're mucking with dt that much you may as well just make it static.
User avatar
kikito
Inner party member
Posts: 3153
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

Re: My own action adventure engine

Post by kikito »

Xkeeper wrote: The problem is, let's say Physics is taking too long.
Then your problem wouldn't be dt; the problem would be that, literally, physics take too long.

The right solution would be removing unused bodies, stopping simulations of non-critical stuff, etc.
When I write def I mean function.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 6 guests