mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-06-11 23:34:04 +09:00
removing emulator frame cap
This commit is contained in:
@@ -1,11 +1,11 @@
|
|||||||
// some manual configurations
|
// some manual configurations
|
||||||
//
|
//
|
||||||
let IPFMODE = 2 // 1 or 2
|
let IPFMODE = 2 // 1 or 2
|
||||||
let TOTAL_FRAMES = 901
|
let TOTAL_FRAMES = 800
|
||||||
let FPS = 30
|
let FPS = 24
|
||||||
let WIDTH = 560
|
let WIDTH = 560
|
||||||
let HEIGHT = 448
|
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:
|
// to export video to its frames:
|
||||||
// ffmpeg -i file.mp4 file/%05d.bmp
|
// ffmpeg -i file.mp4 file/%05d.bmp
|
||||||
// the input frames must be resized (and cropped) beforehand, using ImageMagick is recommended, like so:
|
// 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
|
// end of manual configuration
|
||||||
|
|
||||||
|
let outfilename = exec_args[1]
|
||||||
|
if (!outfilename) {
|
||||||
|
println("Usage: encodemov <outfile>")
|
||||||
|
return 1
|
||||||
|
}
|
||||||
|
|
||||||
const FBUF_SIZE = WIDTH * HEIGHT
|
const FBUF_SIZE = WIDTH * HEIGHT
|
||||||
let infile = sys.malloc(512000) // somewhat arbitrary
|
let infile = sys.malloc(512000) // somewhat arbitrary
|
||||||
let imagearea = sys.malloc(FBUF_SIZE*3)
|
let imagearea = sys.malloc(FBUF_SIZE*3)
|
||||||
@@ -20,11 +26,6 @@ let decodearea = sys.malloc(FBUF_SIZE)
|
|||||||
let ipfarea = sys.malloc(FBUF_SIZE)
|
let ipfarea = sys.malloc(FBUF_SIZE)
|
||||||
let gzippedImage = sys.malloc(512000) // somewhat arbitrary
|
let gzippedImage = sys.malloc(512000) // somewhat arbitrary
|
||||||
|
|
||||||
let outfilename = exec_args[1]
|
|
||||||
if (!outfilename) {
|
|
||||||
println("Usage: encodemov <outfile>")
|
|
||||||
return 1
|
|
||||||
}
|
|
||||||
|
|
||||||
let outfile = files.open(_G.shell.resolvePathInput(outfilename).full)
|
let outfile = files.open(_G.shell.resolvePathInput(outfilename).full)
|
||||||
|
|
||||||
|
|||||||
@@ -83,8 +83,8 @@ public class TsvmEmulator {
|
|||||||
HEIGHT = VIEWPORT_H * PANELS_Y;
|
HEIGHT = VIEWPORT_H * PANELS_Y;
|
||||||
|
|
||||||
appConfig = new Lwjgl3ApplicationConfiguration();
|
appConfig = new Lwjgl3ApplicationConfiguration();
|
||||||
appConfig.setIdleFPS(60);
|
appConfig.setIdleFPS(9999);
|
||||||
appConfig.setForegroundFPS(60);
|
appConfig.setForegroundFPS(9999);
|
||||||
appConfig.useVsync(false);
|
appConfig.useVsync(false);
|
||||||
appConfig.setResizable(false);
|
appConfig.setResizable(false);
|
||||||
appConfig.setTitle(appTitle);
|
appConfig.setTitle(appTitle);
|
||||||
|
|||||||
Reference in New Issue
Block a user