Closed lamogui closed 11 years ago
Copy&paste form the closed issue:
I think that a objetive should move out any sfml dependet code outside of the hardware device code, so we could do this :
A typical checksum it's O(N) with a very fast internal operation. In pseudo-code:
uint16_t checksum = 0
for (i=0 to video_ram_size)
checksum = (checksum + videoram[i]) & 0xFFFF;
return checksum
Not have the same reliability that a hash function but can do the job enough well for this.
I will close this for the moment. We can open a new issue if we need to discuss about how make more efficient the monitor code.
In ADDITION of providing sf:Image, i think we can add a sf::Texture to avoid texture.loadFromImage or If in the futur we need it.
Somes other ideas
I wait for discussions...