Closed notinmybackyaard closed 5 months ago
Hi, it's a known limitation, the counter wraps and it's still the case on master. For most use-cases it shouldn't be observable. When I picked the size of the counter I used a game running 1000 systems per frame at 60 fps as target. On master, it would be almost 20 hours before the counter wraps.
The assumption is that by the time it wraps, you have inserted/modified the component again which will "reset" the countdown. So let's say you insert at time 0, then you insert again at time 6min, it shouldn't wrap until 18min.
The algorithm to evaluate when the wrap happened changed on master (and I'm still not 100% confident it's correct). I ran your test on 0.6 and master to compare. 0.6: 10 minutes for a wrap master: more than 2 hours, still no wrap so I stopped it (it will happen eventually)
Hello, I've encountered an error where the tracking flag functions incorrectly when the inserted_or_modified flag is iterated frequently. I suspect this issue might be related to an overflow, but I'm not certain. Currently, I am using version 0.6.2 and have noticed significant changes in the tracking code in the master branch. Could you please confirm if this bug has been fixed in the master branch? Additionally, here's the problematic code. In release mode, it logs every 12 minutes.
Code:
Result: