Author Topic: Moving the parsing to the mainthread?  (Read 15460 times)

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Moving the parsing to the mainthread?
« on: December 24, 2005, 06:01:33 pm »
I was wondering if there's any "quick-hack" way to do the parsing in the *main* thread, because I've seen no other way of profiling. If anybody knows a way, I'd really appreciate it.

Thanks!

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Re: Moving the parsing to the mainthread?
« Reply #1 on: December 24, 2005, 06:06:37 pm »
Ah, I found the way! :)

parser.cpp: 697

Code
#if 1
        thread->Parse();
#else
m_Pool.AddTask(thread, true);
#endif

If i want to stop profiling, i just put a 0 after the #if :)