trillek-team / trillek-vcomputer-module

Trillek Virtual Computer implementation
GNU Lesser General Public License v3.0
46 stars 12 forks source link

Dirty regions detection (blocks of RAM that are been overwrite) #40

Open Zardoz89 opened 9 years ago

Zardoz89 commented 9 years ago

Implement dirty regions, blocks of RAM that are been overwrite. Probably using std::map<Range, bool>. Useful to optimize when is necessary to update screen texture/send TDAScreen across network, and it would necessary for DJIT CPU core.

Trello card : https://trello.com/c/XmMoXWOh

Zardoz89 commented 9 years ago

Notes :

Also, I'm thinking in a less fined grained solution that uses a map . This map, maps address to a list (or other type of container) of address ranges on buckets of 256 bytes, were each address range limited to 256 byte boundary or have a self reference to how many buckets are mapped. This idea would need more develop and tweak/profile the size of bucket, and other details