Quantcast
Channel: iOS and tvOS
Viewing all articles
Browse latest Browse all 10823

Texture2D.LoadImage is slow. Here's a workaround. @Alexey

$
0
0
Hey guys, particularly Alexey. ( bug report case # 605471)
Texture2D.LoadImage is slow. I've created a method to asynchronously load textures from files on disk on iOS. This is fast as hell and runs circles around Texture2D.LoadImage. Basically, you provide an URL of the image on disk you want to load, and it'll load the file asynchronously. I haven't heavily tested my method that resizes the texture if you ask it to, but resize == false version I tested a bunch.

usage:
mediaTexture =...

Texture2D.LoadImage is slow. Here's a workaround. @Alexey

Viewing all articles
Browse latest Browse all 10823

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>