开发者

Is it possible to render 1-2 thousand images in Flutter?

开发者 https://www.devze.com 2022-12-07 21:23 出处:网络
I am using Flutter to develop a game. I would like to dis开发者_JAVA百科play 1-2 thousand small images that can move (via a AnimatedPositioned widget for example) on the screen. The resolution will be

I am using Flutter to develop a game. I would like to dis开发者_JAVA百科play 1-2 thousand small images that can move (via a AnimatedPositioned widget for example) on the screen. The resolution will be very low of each individual image of course. I'm unsure if Fluttter has a feature or is able to handle such a feature and would like to know if it's possible, and if so, best method to get there.

I've tried displaying 1000 images using Image.asset('my_image.PNG') in a GridView.builder(), using the profiler, my emulator was only able to achieve 6fps average.

0

精彩评论

暂无评论...
验证码 换一张
取 消