Developer forums (C::B DEVELOPMENT STRICTLY!) > CodeCompletion redesign

Moving the parsing to the mainthread?

(1/1)

rickg22:
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!

rickg22:
Ah, I found the way! :)

parser.cpp: 697


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

--- End code ---

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

Navigation

[0] Message Index

Go to full version