Fix libGDX flickering, fix #148, fix #149

This commit is contained in:
Emux 2018-01-04 16:55:10 +02:00
parent ab7164499d
commit af98b0668a
No known key found for this signature in database
GPG Key ID: 89C6921D7AF2BDD0
4 changed files with 8 additions and 6 deletions

View File

@ -5,6 +5,7 @@
- S3DB layer [#475](https://github.com/mapsforge/vtm/pull/475)
- vtm-mvt module with MVT tile decoder [#481](https://github.com/mapsforge/vtm/pull/481)
- OpenMapTiles MVT vector tiles [#482](https://github.com/mapsforge/vtm/issues/482)
- Fix libGDX flickering [#148](https://github.com/mapsforge/vtm/issues/148) [#149](https://github.com/mapsforge/vtm/issues/149)
- Render theme fallback internal resources [#477](https://github.com/mapsforge/vtm/issues/477)
- Many other minor improvements and bug fixes
- [Solved issues](https://github.com/mapsforge/vtm/issues?q=is%3Aclosed+milestone%3A0.10.0)

View File

@ -51,7 +51,7 @@ public class GdxActivity extends AndroidApplication {
AndroidApplicationConfiguration cfg = new AndroidApplicationConfiguration();
cfg.stencil = 8;
cfg.numSamples = 2;
//cfg.numSamples = 2;
new SharedLibraryLoader().load("vtm-jni");

View File

@ -1,6 +1,6 @@
/*
* Copyright 2013 Hannes Janetzek
* Copyright 2016-2017 devemux86
* Copyright 2016-2018 devemux86
*
* This file is part of the OpenScienceMap project (http://www.opensciencemap.org).
*
@ -65,7 +65,7 @@ public class GdxMapApp extends GdxMap {
cfg.width = 800;
cfg.height = 600;
cfg.stencil = 8;
cfg.samples = 2;
//cfg.samples = 2;
cfg.foregroundFPS = 30;
cfg.backgroundFPS = 10;
cfg.forceExit = false;

View File

@ -1,6 +1,6 @@
/*
* Copyright 2013 Hannes Janetzek
* Copyright 2016-2017 devemux86
* Copyright 2016-2018 devemux86
*
* This file is part of the OpenScienceMap project (http://www.opensciencemap.org).
*
@ -112,8 +112,9 @@ public abstract class GdxMap implements ApplicationListener {
@Override
public void render() {
if (!mRenderRequest)
return;
// Workaround for flickering
/*if (!mRenderRequest)
return;*/
mMapRenderer.onDrawFrame();
}