TinyCircuits Forum

TinyCircuits Products => Thumby => Topic started by: transistortester on November 21, 2021, 09:19:12 PM

Title: A couple questions about the emulator
Post by: transistortester on November 21, 2021, 09:19:12 PM
I've been starting to work on a larger project, and have a couple questions about development with the emulator:
First, how does the performance compare to real hardware?
Second, is it possible to use multiple files in one project with it?
Part of it will eventually require reading from a binary file too large to embed in a script, so I'm especially interested in filesystem emulation (even if just read-only). Being able to split the code into two files would be nice too.
Thanks in advance, seems pretty nice to work with so far.
Title: Re: A couple questions about the emulator
Post by: Jason on November 22, 2021, 11:07:05 AM
I've been starting to work on a larger project, and have a couple questions about development with the emulator:
First, how does the performance compare to real hardware?
Second, is it possible to use multiple files in one project with it?
Part of it will eventually require reading from a binary file too large to embed in a script, so I'm especially interested in filesystem emulation (even if just read-only). Being able to split the code into two files would be nice too.
Thanks in advance, seems pretty nice to work with so far.

Performance: I made a simple example and measured the hardware to be 1.8x faster than the emulator, but it might not matter depending on the game. For example, our SaurRun game runs too fast on the emulator and hardware without a software frame limiter.

Multiple files: multiple files can't be used in the emulator, yet. A new version is being worked on where multiple files can be uploaded, but more UI needs completed. The new version would allow for read only access so far, but files in the emulator are still placed in root '/'; however, I am looking into a way to allow the emulator to read/write files and directories so we can have 1-to-1 filesystem emulation.
Title: Re: A couple questions about the emulator
Post by: Timendus on January 03, 2022, 09:56:02 AM
Hey Jason, quick question... Will the version of the emulator on /testing move out of testing or will you be trying to finish that 1-to-1 emulation first?
Title: Re: A couple questions about the emulator
Post by: Jason on January 03, 2022, 02:45:48 PM
Hey Jason, quick question... Will the version of the emulator on /testing move out of testing or will you be trying to finish that 1-to-1 emulation first?

Once we feel the API is stable enough everything will move from https://tinycircuits.github.io/testing/ to https://tinycircuits.github.io/ - which could be soon.

As for 1-to-1 emulation, that does not dictate if /testing gets moved. If features like audio are implemented, then those additions will be published to wherever the latest version of the IDE lives. /testing is just a temporary page because some of the API changes were breaking.