Report post

Are you sure you want to report the post shown below? This will send an email to the ATVO administrators. Please include a short reason for reporting.

Users reporting for no reason may be locked out.


Post

Posted by Jean-Christophe B
on
Lag issue for me too :(
UI becomes slower and slower with times.
By example, it takes me 30 seconds to close 'script performance' window... Or 20 seconds when changing driver in timing screen window.
Rollover on my controls buttons.. and it highlights after x seconds.
Close the theme and UI is responsive again.

I haven't use ATVO recently... Upgrade from 1.29.10 (late may 2020) to 1.42.4.0. Read all update history... Didn't see any big changes related to scripts.

Script performance seems pretty bad...
Simple script like my iRating.cs

using System;
using ATVO.ThemesSDK;
using ATVO.ThemeEditor.ThemeModels;
using ATVO.ThemeEditor.Scripting.DotNET;
using ATVO.ThemesSDK.Data.Results;
using ATVO.ThemesSDK.Data.Enums;

namespace Scripts
{
public class iRating : IScript
{
public object Execute(ThemeContentItem item, object value, string parameter, ISimulation sim)
{
if (value == null)
{
// do something appropriate, in this case probably just return nothing
return null;
}

IEntitySessionResult result = (IEntitySessionResult) value;

var irating = result.Entity.CurrentDriver.License.IRating;
var thousand = 0;
var hundred = 0;

if (irating > 0)
{
thousand = (int) (irating / 1000);
hundred = (int) (irating % 1000)/100;
return thousand + "." + hundred +"k";
}
else
return "-.-k";
}
}
}


Has anything changed?
I re-exported my theme but no changes.