Comments (6)
No, the method will be invoked in the main thread. Akarin will skip all timings called asynchronously, remove all callers will make our codes hard to maintain.
from akarin.
I tried decompiling and make that method multi-threaded, make all related maps/collections thread-safe, at first it works fine with the older build of paper (the build that uploaded around 30 May), but with the most recent build of paper, I'm facing an issue that happens randomly, sometime a player's EntityTrackerEntry doesn't get updated, they will become invisible to other players.
This is how my code looks like
https://pastebin.com/bBK0vEHs
from akarin.
I think its a bad idea to create a new thread for each method call.
from akarin.
@Leymooo I put them to a synchronized block so that will be fine
from akarin.
I noticed the changes in 9cfe108 cause many entity update issues, just reverted it.
from akarin.
Made this parallel again, without significant issues so far.
from akarin.
Related Issues (20)
- upload-pack: not our ref HOT 2
- Exception in thread "main" java.util.zip.ZipException: zip END header not found HOT 22
- 如何构建AKarin&相关问题的解决方法 HOT 3
- 1.12.2 build failure? HOT 4
- any plan to mitigate log4j 0day cve? HOT 8
- [1.12.2]server crash when player enter HOT 6
- [1.12.2] Server crash when starting
- [1.12.2] JDK 9+ support? HOT 17
- Is Ararin discountinued? HOT 1
- [1.12.2] [Bug] AkarinSlackScheduler would fail sometime HOT 2
- [1.16.5] Error occurred when running jar file after compilation HOT 5
- [1.12.2] Crash when generating a world HOT 3
- [1.12.2] Migrate to patch based system HOT 9
- unable to load java version plugin that requires >=17 (1.16.5) HOT 4
- 告示牌材质不显示的问题(git-Akarin-"e912498") HOT 6
- The problem with the plates on this core! HOT 4
- Сделайте ядро версии 1.16.5 HOT 1
- [1.12.2] Hoppers cannot interract with minecarts HOT 1
- [1.12.2] Items on itemframe disappear when restarting the server
- [1.12.2]Does it support using paper generated worlds?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from akarin.