[DiscordArchive] I might remember wrong, but isnt item guid also only generated on even numbers?
[DiscordArchive] I might remember wrong, but isnt item guid also only generated on even numbers?
Archived author: Err0r • Posted: 2025-02-16T14:15:43.734000+00:00
Original source
```Reoder item guids in item_instance and character_inventory``` Typo
Archived author: Takenbacon • Posted: 2025-02-16T14:26:03.911000+00:00
Original source
Can't quote me on this but I was pretty sure it'll add a lock instruction on its own making it inherently safe but it's obviously not recommended to rely on that lol
Archived author: Takenbacon • Posted: 2025-02-16T14:29:29.444000+00:00
Original source
Don't need a full memory barrier, make _nextguid atomic and use a fetch_add with relaxed memory order
Archived author: walkline • Posted: 2025-02-16T14:36:41.081000+00:00
Original source
Nice! I have some concerns, though. I'll leave comments in the PR.
Archived author: walkline • Posted: 2025-02-16T14:38:50.054000+00:00
Original source
Yeah, that would probably be the best option. However, we need a separate atomic guid generator specifically for items.
Archived author: Kitzunu • Posted: 2025-02-16T14:40:15.156000+00:00
Original source
yeye