NickHugi / PyKotor

A Python library that can read and modify most file formats used by the game Knights of the Old Republic and its sequel.
GNU Lesser General Public License v3.0
11 stars 3 forks source link

Offload `Scene` texture loading to another thread. #103

Closed th3w1zard1 closed 3 months ago

th3w1zard1 commented 3 months ago

This PR is simple enough: the main bulk of the slowdowns in the Designer is texture io being done in the main thread. Since we can simply show a blank texture this seemed like a slam dunk easy way to speed it up.

Although in reality I ended up rewriting this PR several times. After a week or so of testing, I submit this.