ProcGen & Scene Static Upload Memory Optimizations#1061
Open
RuffledPlume wants to merge 97 commits into
Open
Conversation
82dcec3 to
19f993d
Compare
947521e to
5ca39ca
Compare
Switched from ThreadLocal to ConcurrentPool for Generator Contexts
… input since it'd effect the result
…a for fast rejection
51bbc8b to
d50e793
Compare
* Buckets can only go up to 30, 31/32 are invalid since int is signed * When borrowing, we need to round up to the nearest pow2
1bda257 to
c6fe7a5
Compare
Use Stamps to avoid having to clear zSortHead & zSortTail Track toched LinkSets instead of the min/Max fZ which significantly reduces the amount of buckets it has to loop through
2c45797 to
a37cd9c
Compare
SceneUploader now costs bytes instead of MB
…d of the current thread
3a29acb to
6472a8a
Compare
fbd66a6 to
cb22396
Compare
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.
Main:
PR:
Key Changes
Introduces Primitive Collections
Int2IntHashMapInt2ObjectHashMapIntHashMapUsing Base Java Collections with generic type means any function call taking a key/value of that type will allocate since it will need to box the primitive type with the object version, which in hot path leads to MBs of garbage being generated.
ProceduralGenerator
isWaterTile&skipTilearrays int abyte[][][] tileFlagsMainTileOverridesGeneratorArea