Giter VIP home page Giter VIP logo

Comments (16)

jcupitt avatar jcupitt commented on June 4, 2024

In case it's relevant, I built martypc with cargo build, I downloaded the 8088 GLABIOS rom, made an icon.png (it was complaining about this) in install/, and added a rom override to the toml:

rom_override = [
    { path = "./roms/GLABIOS_0.2.4_8T.ROM", address = 0xF0000, offset=0, org="Normal" },
]

from martypc.

dbalsom avatar dbalsom commented on June 4, 2024

In case it's relevant, I built martypc with cargo build, I downloaded the 8088 GLABIOS rom, made an icon.png (it was complaining about this) in install/, and added a rom override to the toml:

rom_override = [
    { path = "./roms/GLABIOS_0.2.4_8T.ROM", address = 0xF0000, offset=0, org="Normal" },
]

That is very relevant - I put the rom_override feature in mainly for rom developers so that they could force the emulator to use a specific rom, otherwise MartyPC is limited to the ROM hashes it knows about in its internal database ( I need to factor this out to an external definition file)

You were really close; you just need to load GLaBIOS at 0xFE000.

The intent I had for users was just to have them drop roms in the /roms/ folder and Marty would just figure out which one to use

from martypc.

jcupitt avatar jcupitt commented on June 4, 2024

You were really close; you just need to load GLaBIOS at 0xFE000.

And that did it! It's working well now. Thank you, I'll close.

from martypc.

dbalsom avatar dbalsom commented on June 4, 2024

Just another note - if you use the rom_override feature (which is fine, it lets you experiment with a bunch of ROMs I don't otherwise 'support') you are responsible for ALL the ROMs. So if you want to add a hard disk controller, you need to add another line and load the Xebec ROM there too, same for EGA and VGA.

from martypc.

jcupitt avatar jcupitt commented on June 4, 2024

The GLaBIOS download page:

https://github.com/640-KB/GLaBIOS/releases

Seems to suggest GLABIOS_0.2.4_8T.ROM (it's the first one they list), but roms.txt lists a GLaBIOS with a different checksum:

$ md5sum GLABIOS_0.2.4_8T.ROM 
cfcdd125e70d3f2343388c83ffabd6c7  GLABIOS_0.2.4_8T.ROM

from martypc.

dbalsom avatar dbalsom commented on June 4, 2024

The author of GLaBIOS was kind enough to create customized versions of GLaBIOS for MartyPC, those are included in the 0.1.2 binary release. They have special features.

Since GLaBIOS is under active development, I can't keep up with every version and change - I recommend using the two in the release archive.

from martypc.

jcupitt avatar jcupitt commented on June 4, 2024

Ah, I understand. I'll do that.

from martypc.

dbalsom avatar dbalsom commented on June 4, 2024

I notice that from your screenshot your render time is pretty high. at 7.3ms. It should be under 1ms. Would you be willing to install cargo flamegraph and take a measurement for me so I can see where that time is going?

https://github.com/flamegraph-rs/flamegraph

from martypc.

jcupitt avatar jcupitt commented on June 4, 2024

I'd expect it to be slow -- it's a cheap GPU running two 1440p screens and a fancy shell. I'll try flamegraph tomorrow.

from martypc.

dbalsom avatar dbalsom commented on June 4, 2024

The stuff in 'render time' actually runs on your CPU. I'm going to rename it to 'Framebuffer Time'

from martypc.

jcupitt avatar jcupitt commented on June 4, 2024

I had a go:

$ flamegraph -o x.svg -- ../target/debug/martypc

Then quit after a second or so.

http://www.rollthepotato.net/~john/x.svg

from martypc.

dbalsom avatar dbalsom commented on June 4, 2024

Thanks. For some reason the CGA device is taking 7x as much time to run as it should. Strange.

from martypc.

dbalsom avatar dbalsom commented on June 4, 2024

just a thought, when you build did you do 'cargo build' or 'cargo build -r' ? the former makes a debug build, which is very slow

from martypc.

jcupitt avatar jcupitt commented on June 4, 2024

Ahhhh yes I'm sure that's it. I didn't realize cargo defaulted to a debug build.

from martypc.

dbalsom avatar dbalsom commented on June 4, 2024

Youre not the first, it's a little frustrating that the default is a debug build. I've added a UI warning when MartyPC is built in debug mode, now you can't miss it!
image

from martypc.

jcupitt avatar jcupitt commented on June 4, 2024

Yeah, meson defaults to debug as well, it's caused quite a few libvips issues. I should add a warning like that.

from martypc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.