[patchset] Texture cache improvements / Caching textures by checksum

jn
Member
 
Posts: 106
Joined: Tue Jan 03, 2012 19:15

[patchset] Texture cache improvements / Caching textures by checksum

by jn » Sat Feb 25, 2012 19:42

Because the current texture cache implementation is rather inefficient when switching between servers with different texture packs, I changed it to store the textures by their checksum, instead of their filename (e.g. default_dirt.png).
This patchset has one disadvantage that I can currently think of: You can't identify textures in the cache by their filenames anymore.

Please tell me if it works on other operating systems and configurations.

Version 1: http://repo.or.cz/w/minetest-c55/jn.git/shortlog/refs/heads/texture_cache_v1
- currently only tested on Debian (GNU/)Linux, where it works well

Version 2: http://repo.or.cz/w/minetest-c55/jn.git/shortlog/refs/heads/texture_cache_v2
- rebased on celeron's master branch of 2012-02-28

Feedback appreciated!
Last edited by jn on Sat Mar 03, 2012 00:50, edited 1 time in total.
 

User avatar
Death Dealer
Member
 
Posts: 1379
Joined: Wed Feb 15, 2012 18:46

by Death Dealer » Sun Feb 26, 2012 00:24

Oh freakin awesome!
Keep calm and code python^_^
 

jn
Member
 
Posts: 106
Joined: Tue Jan 03, 2012 19:15

by jn » Sun Feb 26, 2012 12:38

Thank you! Does it work? On which OS?
Last edited by jn on Sun Feb 26, 2012 12:38, edited 1 time in total.
 


Return to Minetest Engine

Who is online

Users browsing this forum: No registered users and 11 guests

cron