5063 Commits

Author SHA1 Message Date
Moritz Zwerger
6cfb689f7b
fix reading of png rgb 2023-11-25 22:42:00 +01:00
Moritz Zwerger
35a9a08880
make opengl texture array implementation lighter
Most of the functionality is actually not opengl specific, so abstract it
2023-11-25 22:12:28 +01:00
Moritz Zwerger
31225196ee
rework some mipmapping 2023-11-25 19:46:45 +01:00
Moritz Zwerger
66846d9abd
eros: fix potential crash when updating servers 2023-11-25 18:58:29 +01:00
Moritz Zwerger
2c0bc512ad
rgba buffer fixes, tests 2023-11-25 18:57:50 +01:00
Moritz Zwerger
fabf71177e
wip abstract texture buffers
They can be RGB and RGBA now
2023-11-25 18:57:50 +01:00
Moritz Zwerger
ae8c8e293e
forgot to actually run the tests 2023-11-25 18:37:44 +01:00
Moritz Zwerger
920539f0c4
fix wrong minosoft meta url migration 2023-11-25 18:12:27 +01:00
Moritz Zwerger
c709ab939c
download minosoft meta and pixlyzer from multiple urls (failover)
My gitlab really blew up this night du to soooo many requests (not bad). But people were unable to play, because they could not download resources. Now github and gitlab.com are also tried as fallback.

Closes GH-20, GH-22
2023-11-25 16:21:05 +01:00
Moritz Zwerger
749936ec7b
profile loader: properly crash when error occurs 2023-11-25 16:19:30 +01:00
Moritz Zwerger
0cfb65b0c9
minosoft meeta: correctly throw error when (down)loading fails
See GH-20
2023-11-25 15:37:52 +01:00
Moritz Zwerger
ae7b15de10
container: handle open/close events on rendering thread
Windows does not allow changing the gl cursor mode on non main thread (or at least it behaves undefined). Both events may be called from any thread (e.g. the network thread when opening a chest). Thread safety was not guaranteed anymore and thus breaking.

Fixes #118
2023-11-24 23:43:24 +01:00
Moritz Zwerger
a63b020e53
glfw: fix crash when window size is <= 0
Windows sets the window size to (0,0) when minimizing the window. That leads to eventual division by zero errors and opengl does not want to attach a framebuffer with that size, resulting in it being incomplete. After maximizing again, it tries to unload that framebuffer, but it was never loaded. Minosoft crashes with an invalid framebuffer state: deleted
2023-11-24 23:43:22 +01:00
Moritz Zwerger
e2f30887ff
move ChunkUtil and LightUtil to network 2023-11-23 22:18:07 +01:00
Moritz Zwerger
c6ccd9b4bc
profiles: properly store and load forced version 2023-11-23 21:32:02 +01:00
Moritz Zwerger
70d736a289
particles: don't throw exception if no sprites available
important for <1.13
2023-11-23 21:28:42 +01:00
Moritz Zwerger
6449d2d54d
javafx: don't load minosoft logo async and wait for it 2023-11-23 21:14:31 +01:00
Moritz Zwerger
8d857a1cbb
move glfw factory to different class
performance...
2023-11-23 20:56:49 +01:00
Moritz Zwerger
1e0a66ee32
move EvokerFangs to correct package 2023-11-23 20:02:51 +01:00
Moritz Zwerger
e08d8e6d9d
fix potential eros start crash 2023-11-23 19:48:47 +01:00
Moritz Zwerger
d404664341
network: 1.20.3-pre3 2023-11-23 19:48:34 +01:00
Moritz Zwerger
ff4cdb8dce
network: 1.20.3: fix some network bugs 2023-11-23 19:48:17 +01:00
Moritz Zwerger
5e9c1e0d19
option to specify render api 2023-11-23 19:28:33 +01:00
Moritz Zwerger
b9109b350e
option to set custom window factory 2023-11-23 19:21:19 +01:00
Moritz Zwerger
6e996f80e0
chunk renderer: ignore block updates if paused 2023-11-23 18:50:53 +01:00
Moritz Zwerger
e236585ef1
outsource javafx text component rendering 2023-11-23 18:37:02 +01:00
Moritz Zwerger
89e4254ddd
abstract system/desktop api
Porting on platforms where javafx or awt is not the best choice (e.g. android) is easier
2023-11-23 18:14:58 +01:00
Moritz Zwerger
46dfbe3252
remove debug TextureArray::dump 2023-11-23 17:31:11 +01:00
Moritz Zwerger
cae786d741
integration tests: boot using MinosoftBoot 2023-11-23 17:08:03 +01:00
Moritz Zwerger
56f26dbae4
outsource minosoft boot process from main class to external class
That will make it much easier to use a custom main class, maybe useful on android
2023-11-23 16:19:53 +01:00
Moritz Zwerger
a2cb6b6258
move integrated assets managers to own holder 2023-11-23 16:04:02 +01:00
Moritz Zwerger
bd6a072dcb
render loop: remove debug statement 2023-11-23 15:03:33 +01:00
Moritz Zwerger
beedfb1cf1
cleanup VersionListCell 2023-11-23 14:15:21 +01:00
Moritz Zwerger
37c844cf8f
fix ProfileSelectDialog 2023-11-23 14:12:53 +01:00
Moritz Zwerger
e5535d9b72
remove name from some profile delegates 2023-11-23 08:12:17 +01:00
Moritz Zwerger
94b1400b53
migrate old profiles to new location 2023-11-23 08:11:37 +01:00
Moritz Zwerger
853d7692d1
network: 1.20.3-pre1
Resourcepack changes
2023-11-22 18:52:28 +01:00
Moritz Zwerger
694fcd991a
minosoft: only set home directory to current folder if running in ci 2023-11-22 14:32:17 +01:00
Moritz Zwerger
fe679f9903
accounts: properly inject storage 2023-11-22 14:28:47 +01:00
Moritz Zwerger
00e239527f
minosoft ci: cache integration test assets 2023-11-22 13:31:26 +01:00
Moritz Zwerger
901de32766
profile io: reset notify count
This fixes 100% cpu usage on that thread
2023-11-21 23:35:18 +01:00
Moritz Zwerger
19ad5e4ece
profiles: properly lock maps 2023-11-21 23:34:56 +01:00
Moritz Zwerger
f893c828d8
minor startup performance improvements 2023-11-21 22:54:29 +01:00
Moritz Zwerger
4704670c28
update doc/Performance 2023-11-21 20:17:15 +01:00
Moritz Zwerger
d9e9de4e86
rewrite handling of server types
Fixes some issues, improves it generally
2023-11-21 18:59:54 +01:00
Moritz Zwerger
c76a040930
custom server type: properly store servers 2023-11-21 18:31:30 +01:00
Moritz Zwerger
ad3d052d31
profile card: remove description 2023-11-21 18:30:59 +01:00
Moritz Zwerger
fd17575bf2
account storage 2023-11-21 18:30:38 +01:00
Moritz Zwerger
ac63265e12
replace redirect delegate
Won't work out without fucking up jacksons internals
2023-11-21 16:06:07 +01:00
Moritz Zwerger
60036f7f9a
StorageProfileManager test 2023-11-21 14:37:42 +01:00