Black Screen or Graphics Driver Reset

·

What you see

During heavy graphics-card work — filling a Node Layer at 4K or 8K, a large bake, or painting on a model of millions of triangles — the screen goes black for a second or two and comes back, often with a Windows message that the display driver stopped responding and has recovered. Vertexix may close. Occasionally the screen stays black until you restart the computer.

Why it happens

Windows watches the graphics card. If the card spends longer than 2 seconds on any one piece of work, Windows assumes it has hung and resets its driver, so that one stuck program cannot freeze the whole computer. Microsoft calls this Timeout Detection and Recovery (TDR). Every program that sends work to the graphics card runs under the same limit, and on a default Windows installation it is always 2 seconds.

The 2-second limit applies to each piece of work, not to the whole job. A long job made of many short pieces is fine; a single piece that runs long is not. A piece can run long because it is heavy, or because the card stalls for a moment — a driver hiccup, the card slowing down when it is hot, another program using it at the same time.

Or because the card's memory is full. A full card does not report an error: Windows moves its memory to and from the computer's own memory instead, and a piece that takes a few thousandths of a second can then take minutes. Large textures fill a card quickly — one 8192 × 8192 texture is 256 MB, and a node bake needs several besides the ones the model already has.

What Vertexix does about it

Vertexix cuts every heavy graphics-card job into small pieces, each aimed at about a hundredth of a second — more than a hundred times shorter than Windows' limit — and keeps a few of them queued, so the card goes straight from one to the next without waiting. The pieces are timed on the card itself, and the next ones are sized from the slowest recent ones. That margin is there for stalls: a piece would have to run more than a hundred times slower than expected before Windows stepped in. You do not need to change anything for this; it is how Vertexix always works.

Before a Node Layer fill or a node brush makes a large texture, Vertexix also checks how much memory the card has free. When the fill would not fit, it is done on the CPU instead: slower, with the same result, and never a full card. See GPU & Memory.

What no program can survive is a graphics card that genuinely stops responding — a driver fault, or a hardware problem. If you see this issue often, work through the fixes below in order.

Fixes, in order

  1. Update your graphics driver from NVIDIA, AMD or Intel. Driver bugs are the most common cause of stalls.
  2. Close other programs that use the graphics card heavily — games, video encoders, other 3D or AI tools, a second copy of Vertexix.
  3. Check temperature and power. A card that overheats, or a laptop running on battery or on a power-saving plan, slows down sharply. Clean the fans, and on a laptop plug in and choose a high-performance power plan.
  4. Work smaller for the heavy step: fill or bake at a lower resolution first, or with less supersampling.
  5. Raise Windows' timeout — the registry setting below. Use it only if the problem keeps coming back after the steps above.

Raising Windows' timeout (TdrDelay)

Windows reads the limit from two values in the registry. Raising them gives the graphics card longer before Windows resets it. This is the same fix other graphics programs give their users: Adobe documents it for Substance 3D Painter (and Painter warns at start-up when the limit is below 10 seconds), and Blender's manual recommends it for GPU compositing. Links are at the end of this page.

Warning

Editing the registry wrongly can stop Windows from working. You need administrator rights. Before you change anything, back the key up: in the Registry Editor select the GraphicsDrivers key and choose File › Export. Microsoft's own documentation describes these values as meant for testing during driver development and says ordinary users should not change them; graphics software makers recommend the change anyway, as a workaround. A longer limit also means a card that has really hung leaves the screen frozen for that long before Windows recovers it.

  1. Press Windows + R, type regedit and press Enter. Allow it to make changes.
  2. Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\GraphicsDrivers.
  3. Choose Edit › New › DWORD (32-bit) Value, name it TdrDelay, then double-click it, choose Decimal and enter 60.
  4. Do the same for a value named TdrDdiDelay, also 60.
  5. Restart the computer. The new values only take effect after a restart.

If the problem still happens with 60, Adobe suggests 120. Windows updates and graphics driver updates can put the values back, so check them again after a large update.

To undo it, delete the two values (or set them back to 2 and 5, the defaults) and restart.

Telling us about it

When the graphics card is still busy with one piece of work after 2 seconds, Vertexix writes what that work was to gpu_watch.txt in its crashes folder — even with logging turned off, and even if the screen then goes black. Send us that file, the log if you had one, and what you were doing; see Logs & Crash Reports for where the folders are.

Note

You are not alone with this: every program that does heavy work on the graphics card runs under the same Windows limit. Adobe, Blender and the graphics card makers all document it: