New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Constantly having huge desync issues on macOS M series. #14375
Comments
What is the "lagometer" and what does it indicate? If it's the server lag value this sounds more like a server problem even though your description makes it sound like a client problem. To debug this issue it a log with |
Lagometer is a tool that was made by Warr, check this video right here as it will provide a visual perspective on the issue If possible let me know how I can use verbose on the Mac, how do I run that command? |
@sfan5 Alright here I provided the file below, what I did is go into the world, fly a little around and it occurred near the end for around 20 seconds and when it stopped I exited. To me this seems like a really nasty bug |
@ShadowRoi If you have Minetest installed in the Applications directory then command |
@sfence i did it its all good. I have provided above the file with the verbose |
Aside from the problem: From The next steps would be:
|
@sfan5 Alright, this time it barely generated new chucks but there still this issue again which I logged, Yes I know sudo. It won't let me run it if I don't use sudo, I don't know what is macOS smoking. Anyways here is the log. Let me know if anything else. Also Minetest is being emulated from x86 to arm64 with Rosetta, I don't know if it's related |
@ShadowRoi |
You forgot the instrumentation | min µs | max µs | avg µs | min % | max % | avg % -------------------------------------------------------- | --------- | --------- | --------- | ----- | ----- | mcl_mapgen_core: | 0 | 2358176 | 28025 | 0.0 | 99.6 | 2.6 - on_generated[1] ................................... | 38406 | 2358176 | 840758 | 20.6 | 99.6 | 79.5 For every chunk¹ generated MineClone took on average 840ms and up to 2 seconds of processing time. ¹: A chunk is an unit larger than a block (16x16x16 nodes), but not so large that it should take e.g. half a second to generate. |
I forgot to mention: Apple's emulation is supposedly very good but this will of course reduce the performance of Minetest itself and any Lua code. Would also explain why you didn't see the issue on Linux. |
@sfan5 So what happens with this? We know now it's a LuaJIT issue on ARM devices now which I think this hasn't be resolved even on the latest version of LuaJIT, soooo... now yes I don't know shit compared to you I am pretty new in programming but I can only think 2 solutions:
If I can do anything else let me know 👍 |
Nothing. |
@sfan5 Well I completely understand but non tech users won't be compiling it. In my opinion a true and quick fix that can be integrated in 5.9.0 so this will make it painless is just to make a quick script that If on macOS and ARM then disable JIT. Because I know that even having LuaJIT you can just disable it. That will make it completely painless easy for every non tech user out there and will help into making Minetest a more Multi-cross platform that will work out of the box. It's a simple quick fix and there won't be people coming over and over reporting this issue. What do you think? |
Minetest version
Irrlicht device
OSX
Operating system and version
macOS Sonoma 14.2.1
CPU model
M1 Pro
GPU model
M1 Pro
Active renderer
OpenGL 2.1
Summary
After a lot of debugging there seems to be a very awkward issue and desync issue, mostly when rendering new chucks in Mineclonia/ MineClone 2. Whenever I attempt to generate new chunks, at random times it starts to have terrible desync issue(checked with lagometer), with that being said duly note that when I attempt generating super flat world or other smaller games in minetest this didn't occur.
Something important to note is that when I installed bare metal Linux on my MacBook, this issue was not occurring.
If I can help with any way and can provide any more information please contact me, I would be glad to help.
Steps to reproduce
The text was updated successfully, but these errors were encountered: