Skip to content

Conversation

@copybara-service
Copy link

Limit the number of particles the tip modeler will emit per modeled input

It turns out that one could easily make the tip modeler lock up and/or run out of memory by specifying a particle gap far smaller than than the gap between modeled inputs, forcing the tip modeler to create unbounded numbers of particle tip states. This has been fixed for now by imposing an arbitrary limit on the number of tip states between subsequent inputs. The intention is that well-designed brushes in realistic scenarios should never get anywhere near this limit.

@copybara-service copybara-service bot force-pushed the test_830461429 branch 2 times, most recently from a3d8ecd to 152c3f2 Compare November 10, 2025 18:19
…nput

It turns out that one could easily make the tip modeler lock up and/or run out of memory by specifying a particle gap far smaller than than the gap between modeled inputs, forcing the tip modeler to create unbounded numbers of particle tip states. This has been fixed for now by imposing an arbitrary limit on the number of tip states between subsequent inputs. The intention is that well-designed brushes in realistic scenarios should never get anywhere near this limit.

PiperOrigin-RevId: 830508565
@copybara-service copybara-service bot merged commit 601d99b into main Nov 10, 2025
@copybara-service copybara-service bot deleted the test_830461429 branch November 10, 2025 18:38
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