Reloaded-Project / Reloaded-III

[WIP] Formal Specification for the Next Iteration of Reloaded
https://reloaded-project.github.io/Reloaded-III/
6 stars 0 forks source link

[R3] Speed up hashes by doing hashes of smaller file chunks. #16

Open Sewer56 opened 5 months ago

Sewer56 commented 5 months ago

Applies to R3 and mods.

For example Riders.Tweakbox has a DirectX9 texture injector, this injector is generic, eventually this will be a standalone R3 mod, and possibly support other APIs.

In any case, an idea there is not to hash the entire file, but a subset of it.

4096 bytes is probably a decent starting point, assuming BC7 or DXT3/5 at 1 byte per pixel, this covers effectively a whole row (in pixel count) of a 4096x4096 texture.