Skip to content

Commit

Permalink
delta time calc fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shchurov committed Dec 7, 2016
1 parent 00410b2 commit 6a1440a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions particleview/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ android {
defaultConfig {
minSdkVersion 14
targetSdkVersion 25
versionCode 1
versionName "1.0"
versionCode 3
versionName "0.9.3"
}
buildTypes {
release {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 6a1440a

Please sign in to comment.