Linked Questions

43 votes
4 answers
18k views

What happens when Time.time gets very large in Unity?

As it is said here : Time.time The time at the beginning of this frame (Read Only). This is the time in seconds since the start of the game. And as I know the time is stored in float. So, my ...
Yaroslav's user avatar
  • 771
6 votes
3 answers
3k views

Convert integer to float while also dividing down the scale, without data loss

I'm working on a game, and my intent is to avoid use of floating point for unit positions. To that end, I'm using 32-bit integers for all positions, with a millimeter scale. However, for rendering, I ...
Nairou's user avatar
  • 614
8 votes
1 answer
4k views

Why loss of floating point precision makes rendered objects vibrate?

I'm working on an open-world game. I noticed glitches when I move far away from the origin. The objects seem to be shaking or wiggle. Especially the z-fighting seems to wiggle. And the objects that ...
Newline's user avatar
  • 183
8 votes
1 answer
2k views

Use floats or doubles when writing mobile games

I know for shaders, floats should be used because they are the optimal choice for performance. Doubles are slow and use more memory which isn't ideal for shaders. While floats are less accurate and ...
Dan's user avatar
  • 276
3 votes
2 answers
4k views

Mathf.Approximately: should I use it & for what cases?

For comparing floats they recommend using Mathf.Approximately At the same time, they don't use it, for example, for comparing types such as vectors. From Vector3....
Serg's user avatar
  • 383
5 votes
1 answer
887 views

Why would a bigger game move the gameworld around the Player instead of just moving a player within a gameworld?

So, this might be a little random since I can't remember any specific examples but this question just popped into my head 30mins ago and wont leave me alone. I remember hearing about some big game ...
Fowo's user avatar
  • 51
3 votes
1 answer
1k views

Screen split in different regions, each with a different scene

I am a complete beginner in Unity and, after having search for a while, I am still not sure if it is actually possible to achieve what I would like to do. My goal is to have a game where the screen is ...
Federico Tomasi's user avatar
1 vote
6 answers
643 views

How to deal with players having too much money (or any large numbers)?

I'm working on a browser MMORPG in PHP and MySQL and today got a bug report about int32 overflow, due to the player having too much money. When I was designing the core system, I completely forgot ...
matronator's user avatar
0 votes
4 answers
1k views

JAVA -- Should I use a float or double for 1.5 speed for my player's speed? What should I use in general for positions, etc.?

The title says it all, but I would like to know if I should use a double 1.5 for my velX and velY factor, or a float 1.5 for my velX and velY factor. Also, I would like to know if I should use a ...
TJRelytS's user avatar
0 votes
1 answer
2k views

Dealing with Floating Point precision in a Minecraft-like game

As far as I know, you can walk for 30 million meters in either direction in Minecraft to reach the end of the world. My question is, how does Minecraft handle loss of precision when dealing with ...
Moons's user avatar
  • 103
4 votes
1 answer
1k views

Does distant and large objects use up a lot CPU usage?

Okay I'm new to Unity, and I'm making a space sim pc game. You know, space is huge, light years of distance between stars. Even if I set 1 AU (150,000,000 KM) as 1 unit, 1 light year will be 63,000 ...
WhatWhereWhen's user avatar
0 votes
1 answer
1k views

Standard unit value for 3d game character height?

Basically I'm building a first person shooter game using DirectX9. And now, I'm working on the modeling side. But before I start modeling, I have to make sure that I create all the models with ...
Farhad Reza's user avatar
2 votes
1 answer
1k views

Shadow flickering with first-person near clipping plane

After adding a first-personal controller asset, world shadows flicker like crazy. I don't understand the cause, and everything I've tried based on googling has failed to help. https://i.imgur.com/...
BotskoNet's user avatar
  • 929
1 vote
1 answer
679 views

Zoom out more in Unity

I am making a sphere with the radius of earth (6371000 meters). I have only limited zoom out and that makes it impossible to add something on the terrain. If I press F, it does not zoom out further ...
John K's user avatar
  • 113
1 vote
1 answer
314 views

How could I implement origin re-base on my large world server?

I wish to make a game set in space where the world is empty space, mostly empty but continuous (i.e. no sectors with jump gates separating them) and extends to long distances like a few hundred or a ...
Allahjane's user avatar
  • 719

15 30 50 per page