Comments (8)
Try editing some of both MapManager's and AnimatedFrames' config options. (MapManager: checkDuplicates, cacheData, sender.delay, sender.amount)
I went through a lot of versions optimizing the performance of this plugin and it's currently at a point where it performs reasonable without breaking stuff. Due to the animation, it has to cache every single frame of every single section of the frame which (obviously) isn't too resource friendly.
(You are also the first one to complain about performance since 20+ updates)
from animatedframes.
In case this is something major for just your server, please post your server's timings.
from animatedframes.
Thank's for your awnser. I'll see config to try to reduce these problems. It's really strange, because I didn't had these problems with others plugins.
from animatedframes.
Here is the load since our discussion : http://prntscr.com/bj3q41
Do you want I to paste MapManager and AF configs here ?
from animatedframes.
Animated Frames :
Make sure all animations are started at the same time on startup (useful if you usethe same image on multiple frames)
synchronizedStart: false
This is a (slightly hacky) fix for images which Java interpretes as the wrong image type
You should enable this if you get this error when creating a image: http://paste.inventivetalent.org/nokomiquri
fixImageTypes: false
message:
command:
create:
setup:
first: "&ePlease right-click the &abottom-left corner &eof the frame"
second: "&ePlease right-click the &atop-right corner &eof the frame"
set:
first: "&aFirst corner set"
second: "&aSecond corner set"
complete: "&aSetup complete! &eCreating frame '%s' with image '%s'..."
loading: "&7Loading image & generating maps..."
starting: "&7Starting playback..."
started: "&aAnimation started!"
error:
exists: "&cFrame already exists"
invalidImage: "&cInvalid image path specified"
unknownType: "&cCould not identify the image type. Please make sure you are using the correct link. (Generating anyway, check console for errors)"
delete:
stopping: "&eStopping animation..."
removed: "&aFrame removed."
error:
notFound: "&cFrame not found"
MapManager :
If vanilla maps should be allowed to be sent to the players (less efficient, since we need to check the id of every sent map)
allowVanilla: false
If the plugin checks for duplicate images before creating a new one (Less efficient when first creating a image, but more efficient overall)
checkDuplicates: true
Cache the packet data in the image object (less CPU intensive for a lot of players, but probably a bit more memory intensive depending on the image size)
cacheData: true
sender:
Delay between map packets (ticks)
delay: 2
Maximum amount of map packets sent at once
amount: 10
Allow immediate sending of map data
allowQueueBypass: true
Enable this if you are using PaperSpigot (and/or you get this error: http://paste.inventivetalent.org/damuhonebu)
paperSpigot: false
from animatedframes.
Looks like a similar performance I usually get. As I said, the plugin can be quite resource intensive, but it also used to be way worse and even crashed some servers completely.
from animatedframes.
Do you've got any ideas to make it less resourceful in a future update ?
from animatedframes.
I do. But that would involve completely re-writing both MapManager and AnimatedFrames, and that's currently something I'm not going to do any time soon, since I already did that for AnimatedFrames recently.
from animatedframes.
Related Issues (20)
- Validate the files you download... HOT 6
- Domain Allowlist / Blocklist HOT 6
- Limit on number of tiles HOT 6
- AnimatedFrames Exception in thread "pool-27-thread-1" HOT 4
- Error HOT 3
- Needs update for 1.17 HOT 1
- [Bug] Could not pass event PlayerInteractEvent HOT 1
- Images are not displayed in 1.8 when the server is 1.16.5 HOT 1
- ConcurrentModificationException when teleporting to another world HOT 2
- Issue 1.17.1 HOT 1
- Dependency Dashboard HOT 1
- Creating Frame on Minecraft 1.12.2 throws NullPointerException on 4.13.3 (works on 4.11.5) HOT 4
- Needs update for 1.18 HOT 1
- Plugin dont work on 1.18 HOT 1
- y-Offset sets AnimatedFrames to high HOT 2
- On Paper 1.19, I can create frames but not remove them
- Hey would it be possible to get this updated to 1.19? :D HOT 3
- 1.16.5? HOT 1
- Generating Exception in Console while coming in a world with a frame HOT 2
- Hi i cant create frames.like i can but its not creating the gif i wanna 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 animatedframes.