Skip to content

Commit

Permalink
recording length increase
Browse files Browse the repository at this point in the history
  • Loading branch information
jakedowns committed Jan 8, 2024
1 parent 0ccc39f commit 8db9326
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/inspiration/Double_Buffering_Petri_Net.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions webgl2.html
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ <h1>Pixel Mixer Demo</h1>
window.capturer = null;
window.capturing = false;
window.targetRecordingFPS = 29.97; //120;
window.targetRecordingDurationSeconds = 10;
window.targetRecordingDurationSeconds = 30;
Object.defineProperty(window, 'maxFrames', {
get: function() { return this.targetRecordingFPS * 10; }
});
Expand Down Expand Up @@ -975,7 +975,7 @@ <h1>Pixel Mixer Demo</h1>
// update recording progress
if (progressElement) {
// Calculate progress based on targetRecordingDurationSeconds
progressElement.value = (window.subframePlaybackCurrentFrame / (window.targetRecordingFPS * window.targetRecordingDurationSeconds)) * 100;
progressElement.value = (window.subframePlaybackCurrentFrame / maxFrames) * 100;
}
window.capturer.capture(canvas);

Expand Down

0 comments on commit 8db9326

Please sign in to comment.