Terrible Lag Issues

Posts: 28
Is it just me, or I'm the only person whos having terrible lag issues lately? Everything about ATVO has been very laggy lately, but I've sorta learned to deal with it by trying not to press as many buttons on ATVO, rather than using the keyboard short cuts to control cameras.

Any tips?
Posts: 81
Most likely your theme needs to be optimized. I recently went through my old theme and condensed things into multiple subwidgets or labels instead of separate widgets for a lot of things like flag colors and things of that nature. Also one thing that seems to help for me, make sure widgets are actually being hidden by show/hide buttons instead of just animations that take opacity to zero.
Posts: 28
Zack R Johnson wrote:
Most likely your theme needs to be optimized. I recently went through my old theme and condensed things into multiple subwidgets or labels instead of separate widgets for a lot of things like flag colors and things of that nature. Also one thing that seems to help for me, make sure widgets are actually being hidden by show/hide buttons instead of just animations that take opacity to zero.

Thanks! I'll try to see what I can do by means of using the show and hide options. I'm having trouble first playing the animation then hiding the widget itself, looking for some kind of delay; I'm probably doing something wrong but again I'll see what I can do.
Posts: 785
Lag is very often caused by scripts that are either throwing errors every time or are just inefficient. The first thing to check is the error log and see if your scripts are giving errors, and then fix that. Errors in scripts are super expensive and bad for performance.
Posts: 28
Nick Thissen wrote:
Lag is very often caused by scripts that are either throwing errors every time or are just inefficient. The first thing to check is the error log and see if your scripts are giving errors, and then fix that. Errors in scripts are super expensive and bad for performance.

I don't use any scripts or anything like that inside my theme. All of my widgets are hooked through buttons and such; I tried optimizing my things like Zack said but have no luck trying things out. Sorta clueless on what to do because I keep having terrible lag issues still.

https://drive.google.com/file/d/1c4F05xrDJ-0hdyLRiX0HJQfLiG4iDXBB/view?usp=sharing This is my ADT file that I use for my own broadcasts. Idk if you or someone else can help decipher my problem but I can't; I just don't know how to.
Posts: 72
What are the specs of your system and did you disable hardware acceleration?

Could be possible your CPU or GPU can’t keep up - hardware acceleration will put ATVO on the GPU, while disabling it will put it on the CPU. I’ve found disabling hardware acceleration has helped with performance.
Posts: 28
Josh Lee wrote:
What are the specs of your system and did you disable hardware acceleration?

Could be possible your CPU or GPU can’t keep up - hardware acceleration will put ATVO on the GPU, while disabling it will put it on the CPU. I’ve found disabling hardware acceleration has helped with performance.

I'll try that and see what results I get from it. Thanks for suggesting.
Posts: 36
Ezeckiel,
I've also been having terrible lag issues, to the point where I'd have to reset the overlay 2 or 3 times in a race. Recently, I discovered my Windows was not updating, and I was several updates behind. Once I updated it, it runs pretty much flawless now. I didn't think a Windows update would effect it that much, but in my case, it definitely did. Hope this helps!
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.


Posts: 785
Any errors in the error log?
Error log? or Event log ?
In Event log (button in ATVO) I didn't see anything wrong...

For Errors/warning in my script, I don't have any error (like this script above).

Is there 'Error log' elsewhere?

Posts: 785
Yes I meant the Event Log while ATVO is running and the theme is slowing down. Most likely cause is usually a script that is constantly throwing errors which is very performance heavy. It should show up in the event log if that happens though.

For all these scripts I would suggest adding a check if the type of 'value' is actually what you expect, something like this:
if (value is IEntitySessionResult)
{
//continue
}
else
{
return null;
}


Can you send me the theme at nick.thissen@appgineering.com ?
Thanks Nick, I'll send it to you now.
I try for the moment to find my issue on showing on/off some widgets... maybe it's related to a widget and not a script?
Posts: 785
If the scripts are never throwing errors then it's unlikely the scripts indeed. The fact that the measurement shows 11 ms from time to time can happen if the measurement just happens to cross over when the sim is updating data or something, but if it only happens occasionally it is no problem. You can click Reset to reset the bar width and see a more reasonable estimate for a while but again if there are no errors I doubt the scripts are an issue.

I'll take a look at your theme to see if I can reproduce it and measure something.
Really weird. I was able to do a test yesterday on a 6h race without any problem.
The previous race, the interface became frozen during the grid. The interface was not responding at all... forced to kill the task.
Impossible to restart ATVO afterwards... Need to restart the PC.

By the way, is there a debug mode that can be activated?
Couldn't it be a memory problem that can be purged manually by the user after a while?

PS: I will send you the video of the crash (unlisted).

Translated with www.DeepL.com/Translator (free version)
Posts: 6
I have the same issue that Jean-Christophe Bouchat is having.
Posts: 6
Mine doesn't lag unless I open the timing/scoring tab