To be able to see how long timme things take to execute, and then easier see where improvements for better performance can be made I suggest we put in milliseconds in the timestamp for each row.
Code for this:
-------------------------------------------------------------------
(I'm not a registred dev, so if someone could copy this into latest CVS)
File: core/guilib/log.cs
Line 132
Method: static public void WriteFile(LogType type, string format, params object[] arg)
Change line from:
writer.Write(DateTime.Now.ToShortDateString()+ " "+DateTime.Now.ToLongTimeString()+ " ");
To:
writer.Write(DateTime.Now.ToShortDateString() + " " + DateTime.Now.ToString("hh:mm:ss.fff") + " ");
Resulting in logfile with timestamp with milliseconds.
-------------------------------------------------------------------
Using the latest CVS, with the blue2 skin I found that the CleanupThumbs()
writes a lot to the logfile, and this consumes about 300ms on a 3GHz P4.
This because of the little animation on top wich loads about 90 thumbs.
Just removing write to the logfile in the cleanup function will speed things up.
Code for this:
-----------------
File: Core/guilib/GUITextureManager.cs
Remove line 617
Log.Write("texturemanager:dispose:" + cached.Name + " total:" + _cache.Count + " mem left:" + GUIGraphicsContext.DX9Device.AvailableTextureMemory.ToString());
/Bosso
Code for this:
-------------------------------------------------------------------
(I'm not a registred dev, so if someone could copy this into latest CVS)
File: core/guilib/log.cs
Line 132
Method: static public void WriteFile(LogType type, string format, params object[] arg)
Change line from:
writer.Write(DateTime.Now.ToShortDateString()+ " "+DateTime.Now.ToLongTimeString()+ " ");
To:
writer.Write(DateTime.Now.ToShortDateString() + " " + DateTime.Now.ToString("hh:mm:ss.fff") + " ");
Resulting in logfile with timestamp with milliseconds.
-------------------------------------------------------------------
Using the latest CVS, with the blue2 skin I found that the CleanupThumbs()
writes a lot to the logfile, and this consumes about 300ms on a 3GHz P4.
This because of the little animation on top wich loads about 90 thumbs.
Just removing write to the logfile in the cleanup function will speed things up.
Code for this:
-----------------
File: Core/guilib/GUITextureManager.cs
Remove line 617
Log.Write("texturemanager:dispose:" + cached.Name + " total:" + _cache.Count + " mem left:" + GUIGraphicsContext.DX9Device.AvailableTextureMemory.ToString());
/Bosso