Comments (2)
Твин выполняется в течении заданного интервала времени и удаляется после выполнения из движка, поэтому, если в программе не используется постоянных указателей на сам твин, то после завершения работы он должен быть корректно удален из памяти сборщиком мусора.
А вообще, я планировал сделать простую систему кэширования тинов в классе твина и в какой-то момент решил что реализовал её, а сейчас посмотрел код и не нашел реализации :) В ближайшее время я добавлю систему кэширования твинов и метод destroy(). Спасибо!
from anthill-framework.
Антон, продолжаю работать с вашим фреймворком. Очень нравится.
Утечки памяти происходят в классе AntTween (метод updateTween). При вызове конструкции типа signal.dispatch.apply(....) происходит создание объектов типа Array и MetodClosure. Для того чтобы этого избежать, перед каждым подобным вызовом я добавил if (signal.numListeners > 0) { ..... }.
В ближайшее время постараюсь освоить гит и попробую принять участие в разработке Anthill'а.
from anthill-framework.
Related Issues (20)
- AntAnimation.makeFromGraphic fix HOT 1
- samples/src/testDrive/TestTaskManager.as fix HOT 4
- AntLabel.autosize bag? HOT 11
- extentions/livinglights HOT 2
- isScrolled && globalXY HOT 4
- поведение isScrolled HOT 1
- AntLabel.align bag? HOT 1
- загрузка графики, непонятный прозрачный бордюр HOT 3
- reset non active entity, bug? HOT 5
- AntSound.play
- AntAnimation.createFromSprite()
- Избыточные расчеты при движении камеры HOT 1
- goto HOT 1
- AntButton label HOT 1
- Расширить функционал AntMouse HOT 1
- AntAnimation BitmapData HOT 2
- AntLabel сбивается align
- Расширить функционал AntLabel
- Курица или яйцо... вот в чем вопрос :) HOT 4
- Загрузка embed графики HOT 4
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 anthill-framework.