# Environment Size Limit?

Discussion in 'Assetto Corsa' started by XN-Sigma, Nov 8, 2012.

1. ### XN-Sigma

Messages:
223
Ratings:
+208
I'm not sure if Aris can/is allowed to answer this but I'll ask anyway.

Is there an environment size limit hardcoded in the engine? Some days ago I was at the WMD forums reading some threads and someone said that pCARS has an environment limitation of 16x16km, so tracks can't be any bigger than that, and so I was wondering about AC and if it has such a limitation, if yes, what would be the size?

And then someone may say "Why would a track need to be so big?", well why not?

• Like x 1
2. ### magicfrwww.ivory-tower.fr

Messages:
168
Ratings:
+89
If the world is not streamed and "shifted", and also if AC engine uses float to describe vertices position, then there is a limitation on the floating point dimension to describe real numbers.

If you use to large number , like 16km ( 16000 meters ), you start too loose precision in the decimals.
For example, with 16000 meters you can have let say 3 figures after in the decimal parts, so something like 16000.569. So it's precis to the millimeter.
But with 160km, you loose 1 figure, 160000.56. So now you only precise to centimer. Wich can lead to graphical glitches. And worst, physics innacuracy.

For Test Drive Unlimited we stream the world, and we shift it. So everytime the cars is moving of 6km, we shift the whole word, so all objects position have value lower than 6000meters. So the only limit were the size of the DVD

Back to the question. If AC don't have such shift feature, and they use float to store real numbers it will be limited to something around 16km too.

If AC engine use double to store positions, then it will be limited too, but with really bigger size, Something around 16 million kilometers.

Now you may think using double will make the game slower, well, not on 64bit OS.

In our current project I can switch my physics engine from float to double, and I see no difference on performance on Win7 64bit.

• Like x 4
3. ### XN-Sigma

Messages:
223
Ratings:
+208
Interesting explanation, and actually, a few months ago I tried making large maps in CryEngine 3 to see how it would work, and it had that exact problem, at around 16km away from the starting point the engine started having problems like doing a lot of flickering on the horizon and generally messing up the graphics, trying to move the camera too much beyond 16km actually made the engine crash. I do know the Unreal Engine 3 has a hardcoded 10x10km limit, the UDK doesn't even let you go beyond that size.

And that idea of moving the map instead of the car is simply genious.
Would be cool if AC could do that.

4. ### magicfrwww.ivory-tower.fr

Messages:
168
Ratings:
+89
Well, that's the only smart idea that came in my mind to resolve the problem at that time
I was using Havok for collision detection I couldn't change it to use double.
Also the X360 was not liking double for real numbers

Messages:
8,585
Ratings:
+3,782
Arma has some seriously big maps. I think Limnos will be the biggest one.

6. ### magicfrwww.ivory-tower.fr

Messages:
168
Ratings:
+89
Test Drive Unlimited was made with O'ahu 1:1 scale

7. ### magicfrwww.ivory-tower.fr

Messages:
168
Ratings:
+89
Here a nice comparison :

• Like x 2

Messages:
8,585
Ratings:
+3,782
Now that i think about it. I think EVE Online might just trump every other game out there.

9. ### XN-Sigma

Messages:
223
Ratings:
+208
hmm... EVE is an space game right? So there really isn't an actually modeled map, just a BIG inside-out sphere with a texture on it for the stars and then the rest of the stuff (planets, ships, asteroids, etc) is probably done like magicfr said, though I've never played it so I dunno really.

Messages:
8,585
Ratings:
+3,782
Yea it´s the space game.
Yea i have no idea really i just thought that since that game is "more 3D" if that makes any sense.

Not just forward, backwards, left and right but up and down as well.

11. ### magicfrwww.ivory-tower.fr

Messages:
168
Ratings:
+89
Well, Space game, make a huge world ... full... of... empty space is not a challenge

12. ### Kjell Eilertsen

Messages:
3,823
Ratings:
+1,260
Thanks for that map!

13. ### Georgios Davakos

Messages:
6,158
Ratings:
+332
An important thing to take to account though is that if you have to much space to work on (adding trees and other stuff) it will cause people with low performance PC to have a bit of a problem if the graphics engine requires a lot of CPU.

• Like x 1
14. ### Lee Knight

Messages:
957
Ratings:
+242
I like long tracks & am currently working on several for rF in BTB (which Ive been considering converting to AC in time).
My largest one is an 84km loop in a roughly triangular layout & to keep the inherent problems Gmotor2 has with large tracks I try to set them with location 0.0.0 as central to the layout as possible....
Would tracks of this size cause troubles for AC?

15. ### XN-Sigma

Messages:
223
Ratings:
+208
I'm not sure how an 84km loop would work in AC, if AC has the same kind of limitation as pCARS then probably wouldn't work. But maybe Kunos thought about this kind of stuff and made the engine support bigger environments, what makes me think this is that some of the devs, Aris probably, said there is no hardcoded limitation for the amount of cars on track, the only limitation would be the user's hardwere and discretion. So there's that.

• Like x 2
16. ### diesirae

Messages:
32
Ratings:
+26
As magicfr said, it depends on what kind of tech they use, but my guess is they haven't implemented streaming to support very large tracks properly (without streaming you're likely to run into some heavy performance issues as well) and uses floats like pCARS so I'd say it's likely that 84km is out of the question, but only the devs can provide an answer at this point.

17. ### 2CV SUPER GTBad Modder FACA

Messages:
119
Ratings:
+186
I would like to know what is the size limit for an environnement, Kunos, please reply to this answer, thanks