Giter Site home page Giter Site logo

Comments (3)

georapbox avatar georapbox commented on June 11, 2024 1

I'll have a look, but I also did an experiment by adding 10 instances in the same page and let it run for 1,5 hours. I didn't notice any CPU or memory increase other than the ordinary during the experiment.

But to be honest, I think that for your case, if you need a timer to run for many hours, you should probably go to a much simpler solution that does not involve canvas or any similar technology. Even better you might want to consider using server-side timers that will communicate with your Frontend via sockets or something similar, for more accuracy and performance. Because in the end of the day, if you plan to have multiple counters for too many hours, you're gonna have such performance issues and I'm not sure that there's any way to cleanup things.

from canvas-circular-countdown.

georapbox avatar georapbox commented on June 11, 2024

I guess that if you have multiple instances, running for long time it can degrade the page's performance. Also, the device's capabilities play important role on that. In general, many canvas elements with complex computations can affect performance negatively.

In your page do you have one or many instances and how much time are they running for?

from canvas-circular-countdown.

PaykomanVll avatar PaykomanVll commented on June 11, 2024

Yes that i have thinked me...

I have multiple timers, i used it as Event-counter for a game.
Alliances leaders can create aevent and then got a counter, and it is always running in background to got a alert too if the event starts..

So depend ons the Alliance how many timers they create.
For me i have running 3-4 counter and after few hours without to relaod then the site is laggy so much =(

So i want to ask about a "clean up"-Function?

You can see it self on got-tools(dot)com

PS: my PC ist very good, I9 + DDR5 etc....

from canvas-circular-countdown.

Related Issues (8)

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.