News for hackers. Stuff that matters.
Re:Software Library: Amiga by db48x on Sunday August 07, 2016 @02:41PM (#12243099)
> The emulator and game took a long time to start with no feedback as to what is happening (e.g. it would be nice to see 'Booting the emulator' , 'Loading the game', 'Optimising for running' or what have you).

This would be an interesting area of research. Once we fire up the emulator, it starts drawing to its screen buffer (which is an HTML5 canvas). What you see is presumably exactly what you would see on the original machine (sadly, I never had an Amiga myself). You see the workbench, possibly some messages in it from the software, then the software takes over the screen and starts drawing pretty pictures. In between, a lot of these things seem to blank the screen, turning it black or grey, or filling it with noise.

Providing meaningful and accurate feedback on top of that would be a fun application of computer vision, but it could turn out to be a difficult problem in the general case.

Thanks for mentioning the fullscreen button, I hadn't noticed that it was broken; I'll see if I can fix it. Muting is a horror show, because MAME and DosBox don't yet support it. SAE does though, so we'll work on it next.

Re:Software Library: Amiga by hansjorg on Sunday August 07, 2016 @03:20PM (#12243239)
One option for better feedback is to add indicators for floppy and hard drive activity, like the leds on the original Amigas.

Some emulators even emulate the sound of the physical fdd :)

https://www.youtube.com/watch?v=csjqX3bm2lc

Re:Software Library: Amiga by db48x on Sunday August 07, 2016 @03:59PM (#12243387)
Indeed, a disk activity indicator is actually an option now with SAE. It'll probably take a bit longer to do correctly, as it will touch more of the page than just the canvas.
Re:Software Library: Amiga by nitrogen on Sunday August 07, 2016 @04:38PM (#12243544)
If you can get the current instruction pointer of the emulated CPU and compare it to a system memory map (or just previous runs of the same ROM and software), you could probably create a progress bar. No computer vision required ;).
Re:Software Library: Amiga by db48x on Sunday August 07, 2016 @09:40PM (#12244943)
Hmm. Such a progress bar would be really cool, but it would jump back and forth a lot.

Also, I have secret plans to use the progress-bar metaphor as an interface for accessing past game states. Imagine if you started playing Pacman, and the progress bar started filling up. Then you click in the middle of the filled-in bar to jump back to that place in time...

Re:Software Library: Amiga by nitrogen on Sunday August 07, 2016 @11:08PM (#12245244)
I imagine building a table of, say, 100 IP values that are only ever visited in order. That is, IP table 5 will never be seen after IP table 6 has been seen. But even that isn't necessary. You could just say, "the first time I see this IP value, increment to 37%", so that the progress bar never moves backward.

The progress-bar-as-rewind idea is very cool, too.

Re:Software Library: Amiga by phire on Sunday August 07, 2016 @11:39PM (#12245351)
Nah, you are overthinking it.

You can record how many frames or cycles it takes for the first thing to appear on the screen.

Since the emulator is deterministic and you are always starting from the same state, it will always take the exact same amount of emulated time (for each version of the emulator). So your progress bar is simply a measure of emulated time.

Or take it a step further, and store a savestate from the moment the first thing appears on the screen, and the user's emulation will start from there instead.

Re:Software Library: Amiga by db48x on Monday August 08, 2016 @02:20PM (#12249786)
Save states would solve a lot of problems :)