m1maker / NGT

New open source game toolkit
https://ngtcode.dev/
MIT License
22 stars 12 forks source link

Timer overflow #2

Closed bobi6666 closed 9 months ago

bobi6666 commented 9 months ago

Hello, I noticed that an integer is used for timer.elapsed(), but I have experience from bgt that we also use the timer to monitor the player playtimer and if int32 is used, overflow is possible after two months.

m1maker commented 9 months ago

Hello. What type do you suggest using?

bobi6666 commented 9 months ago

hello i suggest using u64

Dňa so 23. 12. 2023, 9:42 m1maker @.***> napísal(a):

Hello. What type do you suggest using?

— Reply to this email directly, view it on GitHub https://github.com/m1maker/NGT/issues/2#issuecomment-1868243454, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANEMYRHP6A3X7D5Y6EYV6UDYK2KN5AVCNFSM6AAAAABBALF3ZOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRYGI2DGNBVGQ . You are receiving this because you authored the thread.Message ID: @.***>

m1maker commented 9 months ago

Ok