Commit Graph

120 Commits

Author SHA1 Message Date
TheMode
f80f653ee0 Fast exit for retrieveAll
Signed-off-by: TheMode <themode@outlook.fr>
2022-05-19 12:39:27 +02:00
TheMode
d4875b2838 Slightly improve updateAll
Signed-off-by: TheMode <themode@outlook.fr>
2022-05-18 16:37:25 +02:00
TheMode
dfd8c94f5f More style
Signed-off-by: TheMode <themode@outlook.fr>
2022-05-10 06:42:53 +02:00
TheMode
27c4c99949 Misc style
Signed-off-by: TheMode <themode@outlook.fr>
2022-05-10 04:10:57 +02:00
themode
bc0cb57c61 Cache optimization 2022-03-30 16:50:08 +02:00
themode
c81b0c0125 Palette misc 2022-03-29 16:50:16 +02:00
TheMode
29a06487ce Better flow control
Signed-off-by: TheMode <themode@outlook.fr>
2022-03-28 23:53:53 +02:00
TheMode
f7d44c4774
Snapshot API (#722) 2022-03-03 07:44:57 +01:00
themode
4512cef7d9 Use bytes whenever possible 2022-02-27 22:50:58 +01:00
themode
41862c576b No need to update the palette count on resize 2022-02-27 01:14:57 +01:00
themode
5579415513 FlexiblePalette cleanup 2022-02-26 22:37:53 +01:00
themode
487fbcb5b9 Stricter resize rule 2022-02-25 22:58:55 +01:00
themode
8839503767 Remove some AdaptivePalette fields 2022-02-25 22:36:39 +01:00
themode
58b103afd6 Improve FilledPalette serialization 2022-02-25 03:00:53 +01:00
themode
2627c1702e Bring back palette compression 2022-02-25 03:00:24 +01:00
themode
b6ba957a7b Temporarily disable palette compression 2022-02-25 02:19:29 +01:00
themode
7428176206 Test for palette optimizations 2022-02-24 22:21:11 +01:00
themode
d08635dbc3 Avoid unnecessary/unsafe field lookups 2022-02-13 07:28:50 +01:00
TheMode
09aea3c8d4 palette inlining
Signed-off-by: TheMode <themode@outlook.fr>
2022-02-08 08:41:50 +01:00
TheMode
6716b21a4a Bring back palette optimization
Signed-off-by: TheMode <themode@outlook.fr>
2022-02-03 16:09:43 +01:00
TheMode
fbd462a6ee Temporarily remove palette optimization
Signed-off-by: TheMode <themode@outlook.fr>
2022-02-03 05:34:32 +01:00
TheMode
5b91e0c622 Dead code
Signed-off-by: TheMode <themode@outlook.fr>
2022-02-02 19:55:14 +01:00
TheMode
852712c4ed
Palette specialization (#638) 2022-02-02 19:24:08 +01:00
TheMode
e9f9829c30 Remove implementation details from Palette to allow better compression
Signed-off-by: TheMode <themode@outlook.fr>
2022-01-25 12:29:17 +01:00
themode
5efa6d7980 Add valuesLength 2022-01-19 04:13:01 +01:00
themode
9165a4d2b3 Change default biome bpe 2022-01-19 03:02:42 +01:00
TheMode
379ca22903 Less line
Signed-off-by: TheMode <themode@outlook.fr>
2022-01-10 16:51:21 +01:00
TheMode
5e41b148a4 Free memory when clearing palette
Signed-off-by: TheMode <themode@outlook.fr>
2022-01-10 16:51:21 +01:00
themode
42dc264c93 Smarter setAll loop 2022-01-10 16:51:21 +01:00
themode
b821619a91 Improve replaceAll 2022-01-10 16:51:21 +01:00
themode
9c8fcc4286 Improve replaceAll 2022-01-10 16:51:21 +01:00
themode
592adccf81 Improve setAll with constant return 2022-01-10 16:51:21 +01:00
themode
c949bdd5ba maxIndex cleanup 2022-01-10 16:51:21 +01:00
themode
29017c1d9b Add PaletteGetPresentBenchmark 2022-01-10 16:51:21 +01:00
themode
51795ccbd1 Avoid second map operation 2022-01-10 16:51:21 +01:00
themode
edfcc50214 Avoid recomputing palette 2022-01-10 16:51:21 +01:00
themode
d93e302d2a Avoid memory barrier on replace 2022-01-10 16:51:21 +01:00
themode
c58d84bb5d Add Palette#getAllPresent 2022-01-10 16:51:21 +01:00
themode
fddd9dd934 Improve setAll constant write by 20% 2022-01-10 16:51:21 +01:00
themode
4258e14c5f Another 20% improvement 2022-01-10 16:51:21 +01:00
themode
6827edb619 Improve getAll performance by 20% 2022-01-10 16:51:21 +01:00
themode
59f12e1c26 Optimize #replace 2022-01-10 16:51:21 +01:00
themode
dfeff36857 Optimize #replaceAll 2022-01-10 16:51:21 +01:00
themode
e468e027ba Fix broken count 2022-01-10 16:51:21 +01:00
themode
419c1a4a91 Improve setAll 2022-01-10 16:51:21 +01:00
themode
4f25333add Dead code 2022-01-10 16:51:21 +01:00
themode
812ea7bc07 Avoid array allocation 2022-01-10 16:51:21 +01:00
themode
9c11863f3e Optimize setAll 2022-01-10 16:51:21 +01:00
themode
e62bcc6dbb Optimize getAll 2022-01-10 16:51:21 +01:00
Eoghanmc22
29bbc39a1a improve bit logic 2022-01-10 16:51:21 +01:00