Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Robotlegs utility LasyMediator for better performance in games.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 libs
Octocat-spinner-32 src
Octocat-spinner-32 tests
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.textile
README.textile

Robotlegs utility LazyMediator for better performance in games.

How to use

  • Override the mediatorMap getter method in context to:
 return _mediatorMap || (_mediatorMap = new LazyMediatorMap(contextView, injector));
  • In the constructor of view classes add:
 new LazyMediatorActivator(this);

Why it

  • LazyMediatorMap don’t listen events of display list and check every added/removed view.

How it works

  • LazyMediatorActivator dispatchs LazyMediatorEvent when the view is added/removed from stage.
  • LazyMediatorMap listen to the LazyMediatorEvent from contextView then check the view.

Current version is compatible with Robotlegs v1.4.0+ because _active field (used in LazyMediatorMap) was removed there.

Something went wrong with that request. Please try again.