Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

does world size affect performance?

Surprisingly I couldn't find any meaty info about this, so here I am.

I understand that 1 unit in the editor = 1 meter, but does large worlds affect performance? I mean, they obviously do in sandbox games and other games packed with content. But what if it's mostly empty? My current project is a 2D Gravity Wars clone game with moving planets. Should I make it as small and condensed as possible, or is there room to scale things up?

Basically, do large distances in a mostly empty world affect in-game performance?

like image 323
larsekje Avatar asked Mar 23 '26 10:03

larsekje


1 Answers

Simple answer ... No.

The only thing you lose with big numbers when we are talking about float based vectors is precision.

So the real question becomes ... how accurate do you want your logic to be?

I tend to build stuff placing verts on round value points then scale for size rather than space vertex info at scaled points ... if that makes sense / helps?

like image 103
War Avatar answered Mar 25 '26 23:03

War



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!