Skip to content

Commit

Permalink
Fix libGDX flickering, fix opensciencemap#148, fix opensciencemap#149
Browse files Browse the repository at this point in the history
  • Loading branch information
devemux86 committed Jan 13, 2018
1 parent ab71644 commit af98b06
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions docs/Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public void onCreate(Bundle savedInstanceState) {

AndroidApplicationConfiguration cfg = new AndroidApplicationConfiguration();
cfg.stencil = 8;
cfg.numSamples = 2;
//cfg.numSamples = 2;

new SharedLibraryLoader().load("vtm-jni");

Expand Down
4 changes: 2 additions & 2 deletions vtm-desktop/src/org/oscim/gdx/GdxMapApp.java
Original file line number Diff line number Diff line change
@@ -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).
*
Expand Down Expand Up @@ -65,7 +65,7 @@ protected static LwjglApplicationConfiguration getConfig(String title) {
cfg.width = 800;
cfg.height = 600;
cfg.stencil = 8;
cfg.samples = 2;
//cfg.samples = 2;
cfg.foregroundFPS = 30;
cfg.backgroundFPS = 10;
cfg.forceExit = false;
Expand Down
7 changes: 4 additions & 3 deletions vtm-gdx/src/org/oscim/gdx/GdxMap.java
Original file line number Diff line number Diff line change
@@ -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).
*
Expand Down Expand Up @@ -112,8 +112,9 @@ public void dispose() {

@Override
public void render() {
if (!mRenderRequest)
return;
// Workaround for flickering
/*if (!mRenderRequest)
return;*/

mMapRenderer.onDrawFrame();
}
Expand Down

0 comments on commit af98b06

Please sign in to comment.