fix: marker creation frame formula and Zeus temp marker exclusion#90
fix: marker creation frame formula and Zeus temp marker exclusion#90
Conversation
The marker creation time adjustment formula confused game-time values with frame numbers, producing floats (e.g. 24.951) far from the correct frame (~15). This caused MARKER:STATE updates to have frames before the creation frame, breaking playback (markers stayed invisible until the next property change). Fix: compute creation frame directly from creationTime and startTime. Also add 'RscAttribute' to the default marker exclusion list to filter Zeus attribute editor temp markers (e.g. RscAttributeAreaSize) that produce junk entries with invalid coordinates.
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request resolves two issues affecting marker recording and playback. It corrects the frame calculation for newly created markers to ensure they are properly displayed from their initial creation frame during playback. Additionally, it prevents temporary Zeus attribute editor markers from being recorded, eliminating invalid data entries and improving data cleanliness. Highlights
Changelog
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request effectively addresses two separate issues. First, it corrects a faulty formula for calculating a marker's creation frame number, which was causing playback visibility problems. The new formula properly uses time-based arithmetic to determine the correct integer frame, resolving the issue. Second, it adds 'RscAttribute' to the default marker exclusion list, which will prevent temporary markers from the Zeus editor from creating unwanted data in recordings. The changes are well-explained, logical, and appear to correctly fix the described problems.
Summary
fnc_handleMarkers.sqf:120). The old formulaceil _lastFrameTime - (_delta / frameCaptureDelay)treated a game-time value (~26.5) as a frame number, producing floats like24.951instead of the correct frame (~15). This causedMARKER:STATEupdates to have frames before the creation frame, making markers stay invisible in playback until the next property change (e.g. sector capture color change).RscAttributeto default marker exclusion list to filter Zeus attribute editor temp markers (e.g.RscAttributeAreaSize) that produce junk recording entries with invalid coordinates like[0, 0, -185.97].Root cause
The 2-second
CBA_fnc_waitAndExecutedelay onMarkerCreatedmeansGVAR(captureFrameNo)has advanced by the time the creation is processed. The old formula attempted to backdate the frame but mixed up time values and frame numbers:Test plan
hemtt buildsucceeds (45 SQF compiled, 3 PBOs, 0 errors)RscAttributeAreaSizemarkers no longer appear in recording data