Skip to content

Prevent division by zero in particle emitter frametime calculation - #220

Open
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/fix-particle-emitter-gcd
Open

Prevent division by zero in particle emitter frametime calculation#220
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/fix-particle-emitter-gcd

Conversation

@seer-by-sentry

@seer-by-sentry seer-by-sentry Bot commented Jan 4, 2026

Copy link
Copy Markdown

Fixes CLIENT-1MP. The issue was that: Particle emitter optimization divides by zero GCD result when buffer size is zero.

  • Added a check to ensure the Greatest Common Divisor (GCD) is greater than zero before calculating particle cycle time in part_emt.cpp.
  • This prevents a potential division by zero error if the buffer size and burst size are degenerate (e.g., both zero).
  • If GCD is zero, frametime is defaulted to 1.

This fix was generated by Seer in Sentry, triggered automatically. 👁️ Run ID: 8142266

Not quite right? Click here to continue debugging with Seer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants