Code Monkey home page Code Monkey logo

Comments (2)

PatrickvL avatar PatrickvL commented on May 18, 2024

Another approach could be to allocate the memory range ourselves, let that be read and written like normal memory, and handle the GPU in a separate thread.

A separate thread to handle the GPU with will be needed anyway, as it's emulation should run independently from the CPU.

There are a few things to watch out for though;

Timing might become an issue.
If correct functioning of a piece of software relies on specific timing, that could turn out to be difficult to emulate.

Reads or writes could require specific handling.
If a read or write to GPU memory requires specific handling during this access, we can't treat any access to the hardware address range like normal memory anymore. Instead, we would need address specific handlers, at least for these addresses.
This in turn requires an efficient mechanism to match an address to a handler. (We're still not sure what the best approach for that would be.)

from cxbx-reloaded.

PatrickvL avatar PatrickvL commented on May 18, 2024

This entire idea is obsolete. Accurate GPU emulation requires handling every write and read that would have some effect on the real GPU too.

Now, there do exist methods to speed up the handling of pages faults, but we would have to research the academic papers on the subject first before making any bold statements.

from cxbx-reloaded.

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.