Introduce measure fps widget
This commit is contained in:
parent
d183c2b8ae
commit
f1f9f6d498
1 changed files with 2 additions and 2 deletions
|
@ -61,12 +61,12 @@ public class OsmandDevelopmentPlugin extends OsmandPlugin {
|
|||
if(!mv.isMeasureFPS()) {
|
||||
mv.setMeasureFPS(true);
|
||||
}
|
||||
setText(Float.toString(mv.getFPS()), "FPS");
|
||||
setText(Integer.toString((int) mv.getFPS()), "FPS");
|
||||
return true;
|
||||
}
|
||||
};
|
||||
mapInfoLayer.getMapInfoControls().registerSideWidget(fps, 0,
|
||||
R.string.map_widget_fps_info, "fps", false, EnumSet.allOf(ApplicationMode.class),
|
||||
R.string.map_widget_fps_info, "fps", false, EnumSet.noneOf(ApplicationMode.class),
|
||||
EnumSet.noneOf(ApplicationMode.class), 30);
|
||||
mapInfoLayer.recreateControls();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue