Add engineSetRenderingListSize#4786
Open
FileEX wants to merge 3 commits intomultitheftauto:masterfrom
Open
Conversation
Contributor
|
Wow so this fixes the limit of rendered objects that start disappearing when too many near you??! |
Member
Author
Probably yes. Underwater entities and alpha entities are limited. Opaque entities have no quantity limit. |
tederis
approved these changes
Apr 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
By default, render lists have a fixed size, and for alphaEntitiesList it is 200 elements, and for underwater it is 100. These lists can be safely modified, so this PR adds the ability to change the size of such a list in order to avoid the issue encountered by the author of the referenced issue if necessary. If more objects are rendered than the list capacity, the oldest ones disappear randomly when moving the camera, and this is normal behavior.
alphaorunderwater.Issues
For a large number of entities inside the list rendered simultaneously (> 3500), there are FPS drops. This is caused by O(n²) lists and may be fixed in a future PR.
Motivation
Fixes #4755
Test plan
Resource attached to the referenced issue.
Checklist