Hi : ) I'm running a script inside the unity editor, which executes an algorithm for graph rewriting. (A project for the university) It is not really game related, I'm just starting the scene to get a few output lines in the console. However, in visual studio the algorithm is finished ~3times faster then inside the unity editor. (unity: 0.48s, visual studio: 0.16s) I guess Unity might waste some cpu for engine-related tasks? Does anybody know, how to use more of the cpu/memory ressources just for the scripts? I took a look inside the profiler, but it just seems to record activity after the start of the scene. regards, Davud
Outputting to the Unity console with Debug.Log or Print is slow. Each line outputted includes a complete stack trace, which slows things down a fair bit.