Author Topic: High spikes: Vector3.op_Inequality  (Read 1498 times)

kfboelter

  • Guest
High spikes: Vector3.op_Inequality
« on: September 08, 2013, 11:53:15 PM »
Hello.

I am now profiling my project, prior to release.... I am having some complications with Vector3.op_Inequality(). It is generating quite high processing spikes on the profiler. As oyu can see on the attached image, it alone is taking 20ms to process.

Anyone has a clue of how to reduce that? Do you need more info to deal with it?

Regards

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: High spikes: Vector3.op_Inequality
« Reply #1 on: September 09, 2013, 12:58:45 AM »
You're doing a deep profile. The result is highly inaccurate. That 20 ms at deep profile is not even going to be noticeable on a regular profile. Think of it like this. You have an operation that takes 0.0001 ms, but it happens 1000 times. End result -- 0.1 ms taken by the operations. Now you are enabling a deep profile that adds 0.1 ms to each call. Sudddenly your 0.0001 ms operation becoems 0.1001 ms. Do it 1000 times and now your function execution suddenly takes over 100 ms. You're starting to see a problem where there isn't one.

kfboelter

  • Guest
Re: High spikes: Vector3.op_Inequality
« Reply #2 on: September 09, 2013, 06:03:29 PM »
ok, I will leave that aside :)