1edcbe438d
We don't need to perform a sync when getting the width/height, getting or setting the 'disposed' status, or uploading to a Context3D texture. The Context3D change (using `copy_texture_to_texture` instead of relying on the CPU pixels) has the added advantage of avoiding a validation error when our source image row length isn't aligned to `COPY_BYTES_PER_ROW_ALIGNMENT` This dramatically speeds up the Fancy Pants World 4 loading time (on a branch with my XML prs merged). Without this change, my machine spends around 10 seconds on a blank white screen after clicking 'Play'. With this change, the time spent on that screen is reduced to around 1-2 seconds. |
||
---|---|---|
.. | ||
shaders | ||
src | ||
Cargo.toml | ||
uniforms.md |