64-bit integer instead of float in multiplayer games is a good idea?

Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
Onaylı Üye
Katılım
6 Eyl 2022
Mesajlar
54
Tepki puanı
10
Yaş
25
3 HİZMET YILI
I was experiencing problems with float in booleans and mathematical events due to the float’s inaccuracy in the engine not reaching integer values, so I changed most of the variables and events to 64 bit integers but now I’m afraid that this can causes a burden on the server when passing the RPC between clients and server. I still haven’t noticed anything different using 64-bit integer instead of float.
 
Onaylı Üye
Katılım
27 Haz 2017
Mesajlar
50
Tepki puanı
1
Ödüller
5
Yaş
27
8 HİZMET YILI
I think you should use strings to not lose the accuracy, and then parse it on the client-side, That's how gRPC big int works for example
 
Üye
Katılım
13 Eyl 2022
Mesajlar
11
Tepki puanı
2
Yaş
22
3 HİZMET YILI
I was experiencing problems with float in booleans and mathematical events due to the float’s inaccuracy in the engine not reaching integer values, so I changed most of the variables and events to 64 bit integers but now I’m afraid that this can causes a burden on the server when passing the RPC between clients and server. I still haven’t noticed anything different using 64-bit integer instead of float.
So, you did change to 64 and continue to happen? So what was The problem, i dont even use this but i want to help
 
Onaylı Üye
Katılım
15 Eyl 2022
Mesajlar
53
Tepki puanı
3
Yaş
25
3 HİZMET YILI
64bit int will use a lot of memory and loses precision cause of less decimal
 
Seçkin Üye
Katılım
16 Mar 2022
Mesajlar
343
Çözümler
1
Tepki puanı
27
Ödüller
3
Yaş
36
4 HİZMET YILI
yeah i think that`s true
I was experiencing problems with float in booleans and mathematical events due to the float’s inaccuracy in the engine not reaching integer values, so I changed most of the variables and events to 64 bit integers but now I’m afraid that this can causes a burden on the server when passing the RPC between clients and server. I still haven’t noticed anything different using 64-bit integer instead of float.
yeah i thinke that true
 
ABOBA
Seçkin Üye
Katılım
22 Mar 2022
Mesajlar
302
Çözümler
3
Tepki puanı
11
Ödüller
3
4 HİZMET YILI
floats SLOW DOWN calculations VERY MUCH.
although they allow you to avoid rounding, inaccuracies and overflows are MUCH better than intas.

what and where to use is up to you.
depends on the specific locations.
and whether there will be a brake on not the coolest hardware.
or you focus only on top-end hardware.

if in doubt - conduct tests, experiments, speed measurements.

what exactly where to use - without tests and experiments, you will know in advance only with experience.
 
Zoro Hack
Süper Üye
Katılım
3 Mar 2021
Mesajlar
607
Çözümler
2
Tepki puanı
49
Ödüller
3
Yaş
29
Sosyal
5 HİZMET YILI
the problem i dont even use this
 
Süper Üye
Katılım
2 Haz 2022
Mesajlar
636
Çözümler
2
Tepki puanı
44
Ödüller
3
Yaş
29
4 HİZMET YILI
this maybe cause a ping issue enviroment
 
Süper Üye
Katılım
27 Kas 2020
Mesajlar
892
Çözümler
2
Tepki puanı
61
Ödüller
5
Yaş
26
5 HİZMET YILI
64bit int uses alot of RAM
 
🥷 JIMMYツ 🥷
Süper Üye
Katılım
23 Eyl 2021
Mesajlar
1,125
Tepki puanı
59
Ödüller
6
4 HİZMET YILI
if u have more than 8g ram u have to use 64bit any way
 
Uzman Üye
Katılım
25 Kas 2020
Mesajlar
170
Tepki puanı
10
Ödüller
5
Yaş
28
5 HİZMET YILI
There is no definitive answer to this question as it depends on a variety of factors, including the specific game engine being used and the nature of the float values being passed. In general, however, changing variables and events to 64-bit integers should not cause any significant burden on the server, and may actually improve performance in some cases.
 
I love Allah
Onaylı Üye
Katılım
24 Ağu 2021
Mesajlar
74
Çözümler
1
Tepki puanı
30
Ödüller
4
Yaş
28
4 HİZMET YILI
i'm useing 64 but my ram is good i have ram 8
How many ram do you have?
 
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
Üst