[英]Low fps on LibGDX
您可以通過在應用程序加載程序的配置中定義前台 FPS,將FPS限制為libgdx應用程序中所需的任何值。
LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
config.width = 640;
config.height = 480;
config.foregroundFPS = 60; // <- limit when focused
config.backgroundFPS = 60; // <- limit when minimized
config.samples =2; // AA for shape renderer.. not textures!
new LwjglApplication(new libgdxapp(), config);
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.