Commit Graph

240 Commits

Author SHA1 Message Date
solonovamax
a73767ca75 Merge branch 'gh-builds'
# Conflicts:
#	build.gradle.kts
#	src/main/java/com/dfsek/terra/config/genconfig/CarverConfig.java
#	src/main/java/com/dfsek/terra/config/genconfig/FloraConfig.java
#	src/main/java/com/dfsek/terra/config/genconfig/OreConfig.java
#	src/main/java/com/dfsek/terra/config/genconfig/PaletteConfig.java
#	src/main/java/com/dfsek/terra/config/genconfig/biome/BiomeConfig.java
#	src/main/java/com/dfsek/terra/config/genconfig/biome/BiomeSnowConfig.java
#	src/test/java/LookupGeneratorTest.java
2020-11-24 18:35:33 -05:00
dfsek
b43b9ee7b9 Add RandomFunction and seed variable 2020-11-24 16:04:25 -07:00
dfsek
4ddb3a294e brain moment 2020-11-23 23:04:46 -07:00
dfsek
5a27cb1cdf Don't redefine random in ore pop 2020-11-23 23:02:49 -07:00
dfsek
f309bd8809 [AUTO] Cleanup code 2020-11-23 23:02:36 -07:00
dfsek
70863b50ee Flora go brrr 2020-11-23 22:55:36 -07:00
dfsek
8b0a7d422a do the populator shuffle B) 2020-11-23 21:57:09 -07:00
dfsek
e270969fd1 Update snowable blocks even with physics disabled. 2020-11-23 21:04:39 -07:00
dfsek
7509c03cbd Use FastRandom in populators, fix issues with flora/tree pop 2020-11-22 20:20:26 -07:00
dfsek
2b5fd16e4a Various minor optimizations 2020-11-22 17:35:39 -07:00
budgidiere
177a18855c Faster Cache (#23)
* Faster Cache

* Optimize Imports
2020-11-22 17:28:40 -07:00
dfsek
b90993c492 Add trees to profiler 2020-11-22 13:12:52 -07:00
dfsek
8b95e86fe2 Move trees to separate populator 2020-11-22 00:27:26 -07:00
dfsek
21d606853a Fix cache wackiness 2020-11-22 00:27:12 -07:00
dfsek
3dd08f30a7 Revert "Async Pop Chunks (#22)"
This reverts commit 7ce789d5
2020-11-21 23:55:14 -07:00
budgidiere
7ce789d570 Async Pop Chunks (#22)
* Async Gaea Pop Chunks

* newer gaea lib

* Yell Twice as Loud about paper and fix bug
2020-11-21 22:43:08 -07:00
solonovamax
f8599fd564 Working stuff
Signed-off-by: solonovamax <solonovamax@12oclockpoint.com>
2020-11-21 18:15:41 -05:00
dfsek
1f8d9a710f Implement NoiseFunction2 cache 2020-11-21 16:14:09 -07:00
Bud Gidiere
f40f33aa6a Revert "Better Suggest Paper"
This reverts commit 0a8f36ad93.
2020-11-21 14:57:54 -06:00
Bud Gidiere
d594cd8c02 Revert "Add Base Timings"
This reverts commit d964869196.
2020-11-21 10:55:59 -06:00
Bud Gidiere
0a8f36ad93 Better Suggest Paper 2020-11-21 10:51:55 -06:00
Bud Gidiere
d964869196 Add Base Timings 2020-11-21 09:59:19 -06:00
Bud Gidiere
8876dc3b21 Merge remote-tracking branch 'origin/master' 2020-11-21 08:34:44 -06:00
Bud Gidiere
db2d00a1af Use Better Suggest Paper Method From Paperlib 2020-11-21 08:34:35 -06:00
dfsek
6a70972ea8 Make Biome Search Resolution configurable. 2020-11-20 23:12:18 -07:00
dfsek
dada49f6bf Lower sampling resolution of AsyncBiomeFinder to drastically increase speed 2020-11-20 23:09:19 -07:00
dfsek
c96127fde7 Slightly improve performance of NoiseFunction2 2020-11-20 23:09:00 -07:00
dfsek
e43d814169 Minor optimizations 2020-11-20 20:22:37 -07:00
dfsek
1b0cbe486f Optimize ores 2020-11-20 20:06:21 -07:00
Bud Gidiere
ab906b47c8 Misc Perf improvements 2020-11-20 20:59:27 -06:00
solonovamax
cb3bab2293 jackson stuff + lots of other shit
Signed-off-by: solonovamax <solonovamax@12oclockpoint.com>
2020-11-20 18:35:52 -05:00
Bud Gidiere
75a04f7d8f Lots O Stuff 2020-11-20 16:43:24 -06:00
Bud Gidiere
d125ee3d87 Use Faster GlueList
Uses GlueList a faster List implementation. Drop in replacement for ArrayList.

https://github.com/ertugrulcetin/GlueList
2020-11-19 19:09:48 -06:00
Bud Gidiere
bb4ecee1f8 Use XoRoShiRo128PlusPlusRandom instead of XoRoShiRo128PlusRandom 2020-11-19 17:38:45 -06:00
Bud Gidiere
094b421f97 Use Faster XoRoShiRo128PlusRandom
XoRoShiRo128PlusRandom is a Faster Random Class that is many times faster than standard Java Random. It also features better random distribution and the ability to be split and retain the exact same noise output like Splitable random.

http://dsiutils.di.unimi.it/docs/it/unimi/dsi/util/XoRoShiRo128PlusRandom.html
2020-11-19 17:23:08 -06:00
dfsek
700d1d0a6c Fix bizarre elevation equation issues 2020-11-19 15:09:12 -07:00
dfsek
0bc2c6e897 Import FastMath in tests 2020-11-18 18:47:24 -07:00
Bud Gidiere
0a77487399 Replace Math with FastMath for improved performance.
FastMath is a drop in replacement for the native Java math class with improved performance and fall backs to the native Java math class if necessary.

https://commons.apache.org/proper/commons-math/javadocs/api-3.3/org/apache/commons/math3/util/FastMath.html

This requires further testing and might cause chunk borders due the FastMath giving slightly different results than the native Java math class.

I also added .idea/Terra.iml to the .gitignore
2020-11-18 17:23:09 -06:00
dfsek
19162a1924 Structure tree sapling overrides no longer require tree to be on ground level 2020-11-17 20:10:13 -07:00
dfsek
2100718b2a Minor performance improvements to generation 2020-11-17 14:39:05 -07:00
dfsek
291d0aaf1c Remove unused Feature variable 2020-11-17 13:44:23 -07:00
dfsek
fde8fd95f2 Clean up parsii code 2020-11-17 10:51:31 -07:00
dfsek
4c4c31db45 Cleanup EntityFeature code, account for Structure rotation in Features 2020-11-17 00:49:43 -07:00
dfsek
2750d46a98 [AUTO] Clean & reformat 2020-11-16 23:39:18 -07:00
dfsek
9a403805c9 Cleanup 2020-11-16 23:37:42 -07:00
dfsek
cb537d0514 Rewrite basically the whole generator again. Get rid of failsafe biomes because they are dumb 2020-11-16 23:32:04 -07:00
dfsek
deb7db9b25 Per-world noise gen is no longer dumb 2020-11-16 21:44:49 -07:00
dfsek
b8441b6903 Make NoiseBuilder actually follow builder pattern 2020-11-16 17:01:44 -07:00
dfsek
00c933c06e Fix stoopid NPE 2020-11-16 16:54:55 -07:00
dfsek
cab91ec15b Account for elevation in structure spawns 2020-11-16 16:18:34 -07:00