diff --git a/particleview/build.gradle b/particleview/build.gradle index 7ba83e6..3db2bed 100644 --- a/particleview/build.gradle +++ b/particleview/build.gradle @@ -10,8 +10,8 @@ android { defaultConfig { minSdkVersion 14 targetSdkVersion 25 - versionCode 1 - versionName "1.0" + versionCode 3 + versionName "0.9.3" } buildTypes { release { diff --git a/particleview/src/main/java/com/github/shchurov/particleview/ParticleRenderer.java b/particleview/src/main/java/com/github/shchurov/particleview/ParticleRenderer.java index 847a9f2..32672be 100644 --- a/particleview/src/main/java/com/github/shchurov/particleview/ParticleRenderer.java +++ b/particleview/src/main/java/com/github/shchurov/particleview/ParticleRenderer.java @@ -164,12 +164,12 @@ public void onDrawFrame(GL10 unused) { lastUpdateTime = time; } particleSystem.update((time - lastUpdateTime) / NANOSECONDS); + lastUpdateTime = time; updateBuffers(particleSystem.getParticles()); render(particleSystem.getParticles().size()); if (fpsLogEnabled) { logFps(); } - lastUpdateTime = time; } private void logFps() {