hi, in my theme I was looking for a code to put a clock on it. I found this solution in other themes:
{
local dt = fe.add_text( "", x*0.915, y*0.003, w*0.3, h*0.05 );
dt.align = Align.Left;
dt.charsize = x*0.02;
dt.alpha = 230;
dt.font = "Geforce Light";
function update_clock( ttime ){
local now = date();
dt.msg = format("%02d", now.hour) + ":" + format("%02d", now.min );
}
// fe.add_ticks_callback( this, "update_clock" );
}
But for some reason in windows after 30 seconds aproximately I noticed the cpu fan noise too loud. Trying to find the problem in my theme I commented out the line that updates the clock and now no noise... but also no clock.
Is there anything wrong with the code above or in the implementation of add_ticks_callback function in Windows?
Also the same noise problem when running videos (already converted them to use lower bit rate)
thanks!