In my application I need to find a faster way of loading big arrays of Integer
and Float
variables. What ave
Creating arrays directly using Java Code - This didn't work, because arrays used by my application are really big, 200 000+ float values, which cause
java code too large
error and I couldn't find any workaround for this.Tried importing these arrays in project using
xml
which didn't work too, because file size is getting really big and I can't even build.The thing which worked so far, I've added
txt
files inassets
folder, read them usingInputStream
, parse them as floats / integers and create arrays dynamically, but this is too slow.
The reason which I have these big arrays is, because my project uses Vuforia for showing 3D Models, which needs to represent them as arrays of floats / integers (vertices,textcoords,normals,indices), but loading 12 Models is taking too much time.
I would love to get some advices / suggestions how can I speed up the loading process.
Thanks in advance!