Saltyq / ScriptHookRDR2DotNet

*this project is ABANDONED* An ASI plugin for Red Dead Redemption 2, which allows anyone to create scripts using any .NET language.
zlib License
92 stars 39 forks source link

Text flickering. #25

Closed betenner closed 4 years ago

betenner commented 4 years ago

` public class Main : Script { private TextElement _text = new TextElement("Test Text", new PointF(100, 100), 1f, Color.LightBlue);

public Main()
{
    Tick += Main_Tick;
}

private void Main_Tick(object sender, EventArgs e)
{
    _text.Draw();
}

} ` The text drawn this way is flickering (maybe not drawn each frame). If I set Interval to 1, the game will crash.

betenner commented 4 years ago

I found a weird workaround for this issue: Just open then console then type Help() to show the help, then close the console. Then everything works fine...