shipyard icon indicating copy to clipboard operation
shipyard copied to clipboard

Tracking flag error

Open notinmybackyaard opened this issue 4 months ago • 1 comments

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:

    #[test]
    fn tracking_timestamp_limit_test() {
        let mut world = World::new();
        let entity = world.add_entity(Test);
        world.add_component(entity, Test2);

        fn test_case(tests: View<Test>, tests2: View<Test2>) {
            (tests.inserted_or_modified(), &tests2)
                .iter()
                .for_each(|_| println!("TimeStamp!! Now: {:?}", Local::now()));
        }

        let workload = || test_case.into_workload();
        world.add_workload(workload);
        loop {
            world.run_default().unwrap();
        }
    }

Result: result1

notinmybackyaard avatar Jan 29 '24 02:01 notinmybackyaard