Comments (13)
Well I've investigated some more and its 100% CommandPanels as I tested it with only this plugin, but appears to be happening due to one of my panels so I'll see if I can find out which one it is and why its causing PlayerInteractEvent to go crazy.
from commandpanels.
Try following these steps: https://aikar.co/2018/07/02/tuning-the-jvm-g1gc-garbage-collector-flags-for-minecraft/
from commandpanels.
Nupe CommandPanels still taking up a lot of tick, especially through PlayerInteractEvent
https://timings.aikar.co/?id=d5ef3568b5a04230af1a2da08679224d#plugins
from commandpanels.
Can you send your CommandPanels plugin folder? I have had no issues with paper using 1.16 to this extent, usually, there is some external factor or something in the plugins folder that causes this.
EDIT: If you could also list the other plugins you use that would be great.
from commandpanels.
from commandpanels.
Just a quick note, Command Panels is not compatible with Plugman, you need to use /cpr or restart your server.
from commandpanels.
Yeah, I only use plugman restart on my custom coded plugins.
from commandpanels.
https://www.spigotmc.org/threads/too-many-plugins-is-bad.904/
Should have a read of this, CommandPanels could be lagging as a result of this.
from commandpanels.
Well I've tracked it down to these two files Files
Dont really know why they're causing PlayerInteractEvent to go crazy but yeah.
Edit: Of course as soon as I try it with more plugins another file decides it doesnt want to play nice anymore. I'm at this point just gonna guess the reason behind the lag is the files being too long
from commandpanels.
The other problem is that those two panels up there are not released/rarely used, and when I was testing earlier with only CommandPanels I was literally just having all the panels on and then flying around and breaking blocks which caused the PlayerInteractEvent to happen, and never actually opened a GUI.
from commandpanels.
Yeah, the PlayerInteractEvent is called when the player interacts, aka right-clicking blocks for an example.
This is the code for the event here too:
Which shows it isn't that long.. (line 283-322)
Either way, I will add some updates that will disable code that isn't required, as that code for you would not be required because it is only to open the panel via Hotbar.
from commandpanels.
I have added some optimization for future updates. The PlayerInteractEvent that seems to be lagging will not run if it doesn't need to (which is didn't in your case).
There seems to still be higher timing, despite it only running almost nothing. Very strange, not sure why it would be spitting that out, either way, it will run better.
from commandpanels.
What I meant by long was those panel files being 1000+ lines long, not the event, but yeah that latest update seems to have fixed it. Thanks.
from commandpanels.
Related Issues (20)
- Cancel block-placement if right clicking the hotbar item while block(s) are in the offhand HOT 1
- Do you support mod items with nbt tags? Like Tinkers' Construct mod. HOT 2
- CommandPanels improperly parsing random placeholders as "null" HOT 1
- [Suggestion] Set default way of storing cpanel player heads to the head's value HOT 5
- HAS sections for the title
- Player can't sell item from MMOItems plugin HOT 2
- Individual player lore in example_middle_two
- tokenpaywall error and success messages HOT 4
- Panel Title taking input but not changing value HOT 1
- Add the ability to define placeholders on open panel with the API HOT 2
- I want the sell= command tag to be able to recognize custom model data HOT 1
- Sequences not working within click tags HOT 10
- Placeholder `cp-player-online-N-visible` does not work HOT 1
- Output Value seems to be ignored HOT 4
- MMOItems allowed in item-paywall HOT 2
- Players entering the server will cause crash issues HOT 7
- rightshift and leftshift not working with middle or bottom panels HOT 3
- Fetching Player Skins for Heads is Incredibly Laggy HOT 18
- Dupe 1.8.8
- Make new Wiki more readable HOT 1
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 commandpanels.