For sure JP's slimer is loads of fun, one of my favorites. Makes me wonder if something is possible. JP Mentioned that games using a ROM have the potential to run faster than 100% script based VPX tables. So could it not be possible to build a "simulated rom engine"?, where the VPX script can do part of the work then offload other parts to a ROM engine which executes some kind of binary file, even for fully script driven tables like Slimer? Offload some of the work.
What is it that gives the Rom based tables the edge in performance over the script based tables? Is it that it is a compiled binary and can leverage that efficiency?
I used to have this idea in VPX that when I "compiled" the script I kept looking for a bin executable to be written somewhere, until I realized script compile really means check for syntax errors. Right, there is no "executable" that is created as a result of compiling? So VPX, script is running in RAM. As table sizes keep growing +100 megs +200 megs with VR rooms, Pup Packs and such that will add demand to the CPU and available Ram .. But we love these new games.
I did see Wies is partially answering the question in the previous post.
ROMs run in a highly efficient IDE and they have no overhead, they know nothing but run this pinball machine
and pinmame simply presents to the ROM, the illusion of the hardware being present, and trasnlates what the ROM asks of it's native hardware
into a request that is valid to PC hardware.
VBS is not highly efficient, it is basicaly feed script into VB engine let engine read script and turn into actual function dragging along the overhead of things that arent needed
and the VB engine itself isnt really designed for high speed
That is not to say that one could not write a VB interpreter that is designed for it, but what exists in windows is not that.
You would have to build one into VPX and have it read script, compile and execute internally, and it would be streamlined and devoid of a lot of unnecessary baggage.
and that is probably over simplifying, putting in some active threading of various processes would possibly be needed as well to gain full benefit
to thread on various things to at least 4 processors so all the load does not inevitable land on a single cpu core.
If the VPX team had unlimited time and resources, there are a lot of things they could do, none of them fast and none of them easy.
200MB table does not necessarily equate to eating up 200mb more RAM (though 200mb is trivial now days)
most of the 200MB is stuff that will be shuffled off to the video card to deal with, Indie games chew up more resources than VPX really
Pup packs are not so much RAM eating as they are CPU cycle eating, because the content has to be processed in software.
Asking to switch video content fast when it is being done in software is a job, if said video is encoded in 4k it really becomes a big job.
As for slimer
the table presents no issues for my laptop that are not directly related to not having a GPU
Edited by wiesshund, 26 August 2022 - 02:36 AM.