ProcGen & Scene Static Upload Memory Optimizations#1061
Open
RuffledPlume wants to merge 150 commits into
Open
Conversation
82dcec3 to
19f993d
Compare
fbd66a6 to
cb22396
Compare
aaaf37e to
7a1dd70
Compare
Switched from ThreadLocal to ConcurrentPool for Generator Contexts
… input since it'd effect the result
ad760a4 to
82c7b5e
Compare
e5d3e01 to
54a730f
Compare
Changed Discord URL to be the GIthub Pages URL instead of the invite
ea5b18e to
330ec40
Compare
Using a switch removes the need to access memory to obtain the brightness
Cache the planes components to avoid repeated accesses
ca0d9e9 to
cbc2eca
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