• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

developer-quest: Flutter Developer Quest,这是一款完全由 Flutter 构建的游戏!该 ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

developer-quest

开源软件地址:

https://gitee.com/mirrors/developer-quest

开源软件介绍:

Developer Quest

Become a tech lead, slay bugs, and don't get fired.

All in Flutter.

Research tree

The game progression is based on a "research tree" of tasks. The tree is defined in codein lib/src/shared_state/task_tree but for clarity it is also kept as a diagramin assets/docs. Here's the PNG.

The task "research tree"

Performance testing

Attach a real device and run the following command from the root of the repo:

flutter drive --target=test_driver/performance.dart --profile

This will do an automated run-through of the app, and will save the output to files.

  • Look into to build/walkthrough-*.json files for detailed summaries of each run.
  • Look at test_driver/perf_stats.tsv to compare latest runs with historical data.
  • Run Rscript test_driver/generate-graphs.R (assuming you have R installed) to generateboxplots of the latest runs. This will show up as test_driver/*.pdf files.
  • Peruse the raw data file (used by R to generate the boxplots) by opening thedurations.tsv file. These files contain build and rasterization times for each framefor every run.

If you want to get several runs at once, you can use something like the following command:

DESC="my change" bash -c 'for i in {1..5}; do flutter drive --target=test_driver/performance.dart --profile; sleep 1; done'

Why run several times when we get so many data points on each walkthrough? With several identicalwalkthroughs it's possible to visually check variance between runs. Even with box plots,these nuances get lost in the summary stats, so it's hard to see whether a change actuallybrought any performance improvement or not. Running several times also eliminatesthe effect of extremely bad luck, like for example when Android decides to update some app whiletest is running.

Lock CPU and GPU speed for your performance test device

Run the following command when your performance test device is attached via USB.

./tool/lock_android_scaling.sh

WARNING:

Where to store the profiling data

You probably don't want to check the *.tsv output files into the repo. For that,run git update-index --assume-unchanged test_driver/*.tsv in the root dir. This is a one timecommand per machine.


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
cocos2d-js-extension: cocos2d-js 版本的扩展发布时间:2022-03-25
下一篇:
moba: c++加unity的项目发布时间:2022-03-25
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap