Page MenuHomeFeedback Tracker

Check for isGameFocused before registering draw*3D calls
New, NormalPublic

Description

The game doesn't draw the drawLine3D/drawIcon3D requests instantly, and instead it stores them to perform the GPU call by the renderer, as that's the logical thing to do.

The problem, however, is that if you Alt+Tab out and don't check for isGameFocused, the renderer is not working and those requests keep piling up, and are completed when you Alt+Tab back in, resulting in a massive GPU call which freezes the game for several seconds.

Therefore, please forcefully check for isGameFocused before registering those draws in the first place to solve the problem.

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Scripting
Steps To Reproduce
  1. Run this:
onEachFrame {
  for "_i" from 0 to 3000 do {
    drawIcon3D ["", [1,1,1,1], ASLToAGL eyePos player, 1, 1, 0, str _i]
  }
}
  1. Alt+Tab out and wait for one minute
  2. Alt+Tab back in
  3. Freeze! xD

Event Timeline

Leopard20 created this task.Sep 4 2022, 3:04 PM
Leopard20 updated the task description. (Show Details)
Leopard20 updated the task description. (Show Details)
Leopard20 updated the task description. (Show Details)Sep 4 2022, 3:09 PM
SaMatra added a subscriber: SaMatra.Sep 5 2022, 3:16 PM