Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Periodic App Update #160

Closed
Geson-anko opened this issue May 24, 2022 · 2 comments
Closed

Periodic App Update #160

Geson-anko opened this issue May 24, 2022 · 2 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request mile stone

Comments

@Geson-anko
Copy link
Owner

実装すること

Process/Thread によって並列起動したアプリケーションのUpdateメソッドを周期的に呼び出します。

  • Override method Update(self, delta_time) の実装
  • frame_rateを設定し、周期を決定できる
  • Ctrl + c で全てのアプリケーションを安全に終了できる
  • 全てのアプリの実動作FPSを定期的に出力する Example Applicationの実装
@Geson-anko Geson-anko added documentation Improvements or additions to documentation enhancement New feature or request mile stone labels May 24, 2022
@Geson-anko
Copy link
Owner Author

BaseApp.frame_rate の設定

Regarding #16 #161
BaseAppを継承したアプリケーションでは、frame_rateに指定した回数1秒間にUpdateメソッドを呼びます。
frame_rateの値域によって動作が変わります。

  • When frame_rate > 0.0
    そのframe_rateUpdateメソッドを呼びます。

  • When frame_rate == 0.0
    一度のみUpdateメソッドを呼び出し、終了します。

  • When frame_rate < 0.0
    Updateメソッドを終えたらすぐにまたそれを呼び出します。

@Geson-anko
Copy link
Owner Author

Geson-anko commented May 30, 2022

Quit Keyboard Commandの廃止

#172 #170 によって追加されたpynputが環境に依存するためv0.0.0のリリースまではinput()関数を使ったEnterによる終了にします。#165 (comment)

またそれに伴って追加されたdefault_engine_config.toml #171 も修正します。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request mile stone
Projects
None yet
Development

No branches or pull requests

1 participant