Hello Guest

Author Topic: Rebuild Index Memory issue  (Read 3140 times)

Cybertiger

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 7
    • View Profile
Rebuild Index Memory issue
« on: September 04, 2015, 10:54:39 am »
Hello,
I am using 2DToolkit version 2.5.4 on a MAC with 8Gigs of RAM.
Rebuilding Index crashes my Unity due to a Memory exception as my project is quite large.
Rebuilding Index was actually always working fine but i had to rebuild my Unity library recently due
to a crash and now rebuilding index always crashes while "Scanning Project Folder..." at almost the beginning...
usually takes about 5 minutes to rebuild the index for my project.

I was wondering if there would be a way to rebuild the index in chunks through code?
If not, would you have any other suggestions to get around this memory problem?

Many thanks in advance

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Rebuild Index Memory issue
« Reply #1 on: September 09, 2015, 03:43:21 pm »
Hi,

Yes, if you fancy getting your hands dirty...
tk2dEditorUtility.cs, CreateIndex() creates the index.

You can get it to do a few at a time by hacking the loops in there :)