From a066975ce695e4f0f840dfe2f0b9e639925778a9 Mon Sep 17 00:00:00 2001 From: minjaesong Date: Tue, 3 Jan 2023 01:05:26 +0900 Subject: [PATCH] removing emulator frame cap --- assets/disk0/tvdos/bin/encodemov.js | 17 +++++++++-------- .../src/net/torvald/tsvm/TsvmEmulator.java | 4 ++-- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/assets/disk0/tvdos/bin/encodemov.js b/assets/disk0/tvdos/bin/encodemov.js index 3e3ff5a..4f12200 100644 --- a/assets/disk0/tvdos/bin/encodemov.js +++ b/assets/disk0/tvdos/bin/encodemov.js @@ -1,11 +1,11 @@ // some manual configurations // let IPFMODE = 2 // 1 or 2 -let TOTAL_FRAMES = 901 -let FPS = 30 +let TOTAL_FRAMES = 800 +let FPS = 24 let WIDTH = 560 let HEIGHT = 448 -let PATHFUN = (i) => `/welcome104crop/${(''+i).padStart(5,'0')}.bmp` // how can be the image file found, if a frame number (starts from 1) were given +let PATHFUN = (i) => `/welkom/${(''+i).padStart(4,'0')}.png` // how can be the image file found, if a frame number (starts from 1) were given // to export video to its frames: // ffmpeg -i file.mp4 file/%05d.bmp // the input frames must be resized (and cropped) beforehand, using ImageMagick is recommended, like so: @@ -13,6 +13,12 @@ let PATHFUN = (i) => `/welcome104crop/${(''+i).padStart(5,'0')}.bmp` // how can // // end of manual configuration +let outfilename = exec_args[1] +if (!outfilename) { + println("Usage: encodemov ") + return 1 +} + const FBUF_SIZE = WIDTH * HEIGHT let infile = sys.malloc(512000) // somewhat arbitrary let imagearea = sys.malloc(FBUF_SIZE*3) @@ -20,11 +26,6 @@ let decodearea = sys.malloc(FBUF_SIZE) let ipfarea = sys.malloc(FBUF_SIZE) let gzippedImage = sys.malloc(512000) // somewhat arbitrary -let outfilename = exec_args[1] -if (!outfilename) { - println("Usage: encodemov ") - return 1 -} let outfile = files.open(_G.shell.resolvePathInput(outfilename).full) diff --git a/tsvm_executable/src/net/torvald/tsvm/TsvmEmulator.java b/tsvm_executable/src/net/torvald/tsvm/TsvmEmulator.java index 67e3cc3..b40a16d 100644 --- a/tsvm_executable/src/net/torvald/tsvm/TsvmEmulator.java +++ b/tsvm_executable/src/net/torvald/tsvm/TsvmEmulator.java @@ -83,8 +83,8 @@ public class TsvmEmulator { HEIGHT = VIEWPORT_H * PANELS_Y; appConfig = new Lwjgl3ApplicationConfiguration(); - appConfig.setIdleFPS(60); - appConfig.setForegroundFPS(60); + appConfig.setIdleFPS(9999); + appConfig.setForegroundFPS(9999); appConfig.useVsync(false); appConfig.setResizable(false); appConfig.setTitle(appTitle);