3 ms·
I love stuff like this: > Because the CPU can't directly map the auxiliary RAM to the address space due to a missing hardware feature, the game has to read or
by daenney 10y ago
I love stuff like this:
> Because the CPU can't directly map the auxiliary RAM to the address space due to a missing hardware feature, the game has to read or write to an invalid memory address to invoke an exception handler. This exception handler would then use Direct Memory Access (DMA) to move data from the auxiliary RAM into a game designated cache in physical memory.
So essentially we're just leveraging exception handlers to code parts of the game treating the exception as "desired" behaviour.
- monocasa 10y agoI mean, your swap file does the exact same thing.
- deleted 10y ago[deleted]
- armada651 10y agoWell, when you can handle an exception cleanly why wouldn't you rely on it? Just because we usually associate an exception with unintended behavior doesn't mean that is always the case.
- jandrese 10y agoThis is how pretty much all virtual memory systems are implemented.