Git Product home page Git Product logo

Comments (3)

jeffh2170 avatar jeffh2170 commented on July 20, 2024

Bump

I am seeing the same problem too. When zooming in and out several times and flipping pages causes a huge memory leak or huge allocations. I've tried running Instruments and cannot pinpoint where the leak is taking place... Anyone else have any thoughts or ideas? BTW I'm using Hammerlyrodrigo's most recent version with zooming enabled.

from leaves.

jeffh2170 avatar jeffh2170 commented on July 20, 2024

matsumoto79, I had received a solution (test it and verify for yourself!) to fix the memory problem I was having from Rodrigo Hammerly, assuming you are using his version (September 2011). For me it worked for the most part, I just had to tweak some of the tile settings. I changed the level of detail down to 4 and the bias to 2, and it seemed to work fine. The only time it didn't work was I had a higher detail and bias, which I think just took up too much memory to cache.

Add these two lines of code to -(void)getImages in the LeavesView.m file.
topPageZoomLayer.contents = nil;
topLeftPageZoomLayer.contents = nil;

from leaves.

brow avatar brow commented on July 20, 2024

@matsumoto79 I'm not able to reproduce the memory profile you're describing. If anyone can reproduce, please reopen this issue and publish your modified example in a fork.

from leaves.

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.