Performance problems

54 views
Skip to first unread message

Василий Корягин

unread,
Sep 27, 2017, 3:37:34 PM9/27/17
to StageXL
Hey.
When working with a large number of instances of the DisplaiestContainer class (3000), performance problems occur(9 fps). Prompt a possible solution, the object visually represents a grid square of 50 * 30 * 2, which should interact with the mouse, perhaps for a similar purpose it is necessary to use a different class. Intuitively it seems that the mountain should be treated

Bernhard Pichler

unread,
Sep 27, 2017, 11:20:50 PM9/27/17
to Василий Корягин, StageXL
Hi,

Please activate the Stage console to show the number of draw calls. Take a look here to see how this can be done:
https://github.com/bp74/StageXL_Samples/blob/master/example/benchmark/starling/index.dart#L53

Now you will see a small window in the upper left corner with the number of draw calls. This number should be as small as possible. This is the number of calls the CPU has to send to the GPU to render the scene. The best way to make this number small is to use a texture atlas for you BitmapDatas.

Bernhard



Василий Корягин <vasilisk...@yandex.ru> schrieb am Mi., 27. Sep. 2017 um 21:37 Uhr:
Hey.
When working with a large number of instances of the DisplaiestContainer class (3000), performance problems occur(9 fps). Prompt a possible solution, the object visually represents a grid square of 50 * 30 * 2, which should interact with the mouse, perhaps for a similar purpose it is necessary to use a different class. Intuitively it seems that the mountain should be treated

--
You received this message because you are subscribed to the Google Groups "StageXL" group.
Visit this group at https://groups.google.com/group/stagexl.
To view this discussion on the web visit https://groups.google.com/d/msgid/stagexl/154a4893-0139-42dd-a4ea-92ef53ecc143%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages