Coder Social home page Coder Social logo

Comments (2)

RalphBacon avatar RalphBacon commented on July 4, 2024

Update:

I have "solved" the "memory leak" issue by breaking one of your MD_Parola rules.

If I declare 3 zones, but set two to just a single (overlapping) unit, with the third to the full display

setZone(1,0,0); 
setZone(2,0,0);
setZone(0,0,27);

I find that I can use Zone 0 for the FULL display (no corruption).

When I want to use 3 zones I can respecify the zones:

setZone(1,9,17); 
setZone(2,18,27);
setZone(0,0,8);

and this is honoured without corruption nor memory leaks.

As I say, this does break your rule that zones must not be overlapping but if I do not use two of the three overlapping zones then nothing bad seems to happen.

A bit of a "workaround", your thoughts appreciated.

from md_parola.

MajicDesigns avatar MajicDesigns commented on July 4, 2024

begin() sets the number of zones, or in your case the MAXIMUM number of zones that the library needs to be able to handle.

The variation in zone size is handled using setZone() as per your 'workaround'. The reason for not having overlapping zones is that the animations will get screwed up. If you are not using 2 of the 3 zones than there is no issue.

from md_parola.

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.