Change replay ID resource ID offset to decimal instead of hex

This commit is contained in:
baldurk
2015-09-16 11:36:56 +02:00
parent 429a93b4a0
commit 25cd48401b
+4 -1
View File
@@ -36,7 +36,10 @@ namespace ResourceIDGen
void SetReplayResourceIDs()
{
globalIDCounter = RDCMAX(uint64_t(globalIDCounter), uint64_t(globalIDCounter|0x1000000000000000ULL));
// separate replay IDs from live IDs by adding a value when replaying.
// 1000000000000000000 live IDs before we overlap replay IDs gives
// almost 32 years generating 100000 IDs per frame at 10000 FPS.
globalIDCounter = RDCMAX(uint64_t(globalIDCounter), uint64_t(globalIDCounter+1000000000000000000ULL));
}
};