Comments (3)
This is what it did after a few minutes after spawning a few playerNPCs (Keep in mind it does it for every NPC, not just playerNPCs): https://timings.spigotmc.org/?url=hevogoyanu
Is there some way we can replace the Watcher system and instead use Bukkit events? I cannot use this on a public server if it cuts the TPS in a matter of minutes.
I am willing to do this, but I need to know about it before I can do it.
How did you do it in the original NPC lib?
from compactnpclib.
Would you be able to provide more information in relation to your profiler output? (Are you able to break it down more so more info about the methods with issues)
As an overview, it's possible the reflectionhelper could be optimised a bit more (precompiling patterns) but i'm unsure how much speed increase it could give:
Could be precompiled as a pattern and saved in the object but i'm unaware how many calls to this happen.
from compactnpclib.
I just tried pre-compiling, however it creates the object once, then does the matching so it made no difference.
Here is the profiler output: http://i.imgur.com/COYFxF9.png
It stays at a steady CPU usage that is significantly higher than it should be, as if it is in some sort of infinite loop or is limited my something.
from compactnpclib.
Related Issues (20)
- CmdNPC/NPCLib Error on Startup [1.7] HOT 3
- RuntimeException HOT 4
- Craftbukkit dependency HOT 2
- 1.11 support HOT 1
- Cannot spawn PlayerNPCs (Nothing happens) HOT 5
- Crash
- Crash on version 1.11 HOT 3
- it won't load HOT 16
- Move code is only compatible with 1.11 HOT 1
- Spawn a Player after Reload HOT 5
- Ride entity HOT 3
- AI crash HOT 1
- [ENHANCEMENT] NPC spawn with packet
- THIS PLUGIN NOT WORKING WITH MURDER HOT 1
- NPCLib doesn't work on Paper Spigot 1.10.2
- ERROR HOT 3
- This plugin depends on NPCLib HOT 2
- How to use the method: NPCPlayer.setSkinTexture(String value, String signature)? HOT 4
- Dependency Dashboard
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 compactnpclib.