Comments (5)
If you have to choose between the two solutions, use the former one. The impact of having a WeakRef in every position is really expensive.
I would like to enquire, however, if there is actually a big problem with the use of Server::getInstance()
? Really, it isn't even laggy.
from pocketmine-mp.
@legoboy0215 I've known for a while what the cause was, but spent a while trying to work out ways to fix it. I couldn't come up with a good way to do it, so I opened this.
from pocketmine-mp.
You finally found the reason 👍
I think the first solution is more viable.
from pocketmine-mp.
I have noticed this on my server as well
from pocketmine-mp.
Anyone fancy testing 87ba326 ?
from pocketmine-mp.
Related Issues (20)
- Same file inline optimization
- Enums limit plugins' ability to create custom stuff with existing PM core code
- Variable chunk send rate based on available bandwidth
- Explore running RakLib without a thread
- I'm retiring HOT 104
- Changer RakLib write in full php to extension zend with Raknet official HOT 5
- Implementing new blocks is a pain in the ass HOT 1
- Separate blockstate upgrader system into a library
- Is that removed? HOT 1
- Entities are not loaded from disk HOT 2
- Server connection infinite loading HOT 1
- ToolTiers Register HOT 2
- "/ver", "/version" and "/about" commands issue. HOT 1
- Automatically declare parent permission groups HOT 1
- A bug with the armor equipment sounds
- broadcast sound bug HOT 1
- Make onEnable always run before worlds load, remove `onLoad`, remove `load:` from `plugin.yml`
- Stuck at downloading resource pack HOT 5
- Integrate revamped CallbackValidator
- Consolidate world data version info
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 pocketmine-mp.