Giter Club home page Giter Club logo

Comments (8)

InventivetalentDev avatar InventivetalentDev commented on August 28, 2024

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.

InventivetalentDev avatar InventivetalentDev commented on August 28, 2024

In case this is something major for just your server, please post your server's timings.

from animatedframes.

 avatar commented on August 28, 2024

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.

 avatar commented on August 28, 2024

Here is the load since our discussion : http://prntscr.com/bj3q41

Do you want I to paste MapManager and AF configs here ?

from animatedframes.

 avatar commented on August 28, 2024

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.

InventivetalentDev avatar InventivetalentDev commented on August 28, 2024

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.

 avatar commented on August 28, 2024

Do you've got any ideas to make it less resourceful in a future update ?

from animatedframes.

InventivetalentDev avatar InventivetalentDev commented on August 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.