Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

How to handle displayobject in the hundreds
Started by alfredosalata Oct 02 2017 05:31 AM

- - - - -
No replies to this topic
display objects efficiency lua tables resources voxel 2d voxel vertical scrolling
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

alfredosalata

[GLOBAL: userInfoPane.html]
alfredosalata
  • Observer

  • 1 posts
  • Corona SDK

Greetings.
I'm developing a vertical scroller with "2d-voxel"-like world generation. My problem is that when the screen scrolls the game slows to 30ish fps.

These voxels are 32x32 virtual pixels and i load three chunks of 16 rows with 27 elements per row simultaneusly on screen. I store them in a table.

I have tried moving them indipendently by iterating through the array AND moving them by moving their displaygroup ( this however calls further problem with collision detection and such).

Both solution seem to cause the same amount of latency.

 

Is there any more efficent way of rendering a 1500ish objects grid?




[topic_controls]
[/topic_controls]