Mercurial > fife-parpg
diff engine/core/view/camera.cpp @ 240:09f40db3f10c
Removed unused TimerListener.
Fix: We really don't need to copy the instance list each frame!
Fix: Don't swallow mouse focus events (i.o.w mouse entered/exited APP window
events. These are now propagated as Command events (for now) and can be used
to stop scrolling when the mouse leaves the app window).
author | phoku@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Tue, 24 Mar 2009 16:50:37 +0000 |
parents | 56ac89189bc4 |
children | ed1565a5a2a0 |
line wrap: on
line diff
--- a/engine/core/view/camera.cpp Tue Mar 24 16:32:08 2009 +0000 +++ b/engine/core/view/camera.cpp Tue Mar 24 16:50:37 2009 +0000 @@ -497,7 +497,7 @@ // here instead passing it to each renderer. // instances are checked first if their image intersects with the viewport. // this reduces processing load during sorting later - std::vector<Instance*> allinstances((*layer_it)->getInstances()); + const std::vector<Instance*>& allinstances = (*layer_it)->getInstances(); std::vector<Instance*>::const_iterator instance_it = allinstances.begin(); std::vector<Instance*>& instances_to_render = m_layer_to_instances[*layer_it]; for (;instance_it != allinstances.end(); ++instance_it) {