Docs Network
CookBar
Draws a bar above every operator in the network you are viewing: its cook time on top, its GPU memory below, so the expensive parts of a network stand out at a glance, with the numbers beside them if you like. A Top List in a corner names the heaviest operators and takes you to one with a click. Its toolbar button switches it on; Ctrl+right-click the button for a global Hog CHOP to stress-test against. Based on Anton Heestand's Cook Bar.
⇄ Network
Network editor overlay
Toolbar button
Why use it
When a project starts dropping frames, the first question is which operator is responsible. You can middle-click nodes one by one to read their cook times, or open the Performance Monitor and work through a list of paths, but neither shows you where in the network the cost sits. In a busy network that hunt takes a while, and GPU memory is even harder to see.
Cook Bar draws the answer onto the network itself. Every operator in view gets a bar above it for its cook time and one below it for the GPU memory it holds, so a heavy blur, an oversized feedback buffer or a COMP full of expensive work stands out the moment you open the network. A list in the corner names the worst offenders and takes you to one with a click.
It is based on Anton Heestand's Cook Bar.
Features
- Toggle from the toolbar or quick-launchClick the toolbar button, run Toggle cook bar from quick-launch or switch Active on; the button lights up while the bars are on.
- Cook time at a glanceA bar above each operator shows its CPU plus GPU cook time, green to red up to 1 ms and growing taller past it, with stripes while it cooks.
- GPU memory at a glanceA bar below each operator shows the GPU memory it holds, cyan to blue up to 100 MB and growing taller up to 1 GB.
- COMP totalsOn a COMP, the bars add up the cook time and GPU memory of everything inside it, so you can find the heavy part from the top of a project down.
- Cooking-off markerA COMP whose cooking is switched off gets a grey hatched bar, so a frozen network explains itself.
- Numeric values beside the barsEach bar can write its number beside it, cook time above the operator and GPU memory below.
- Top List of the heaviest operatorsA corner list names the heaviest operators by cook time or GPU memory; click a row to select that operator and zoom to it.
- Stress test with a Hog CHOPA global Hog CHOP eats part of every frame on purpose, so you can watch how the network copes; the toolbar button turns red while it runs.
- Overlay that leaves the network untouchedThe bars draw on the shared network overlay, which leaves before every save, so display flags, annotations and operators stay as they were.
How to use it
- Click Cook Bar's toolbar button, run Toggle cook bar from quick-launch, or switch Active on. The button lights up while the bars are on, whichever way you switched them. Right-click it to open Cook Bar's parameters, like the other toolbar tools.
- Keep the timeline playing. While it is paused, Active is greyed out and the bars stop; they come back when you press play.
- Open the network you want to check. The bars are drawn over the network editor you are working in, above the nodes, and follow you as you move between networks and between panes. They show in one pane at a time.
- Look for the reddest, tallest bars, or read the Top List in the corner. Click a row there to jump straight to that operator.
From there:
- To read exact figures, switch on Values. Each bar writes its number beside it.
- To see where the time goes in a whole project, start at the top and follow the heaviest COMP down: a COMP's bars add up everything inside it.
- To check how much headroom a patch has, open the Global Hog CHOP and let it eat part of every frame.
Reading the bars
Each operator can get two bars: cook time above it and GPU memory below it.
The top bar is cook time, CPU and GPU together.
| What you see | What it means |
|---|---|
| The bar fills across the operator | Cook time from 0 to 1 ms: full width at 1 ms |
| The fill goes from green through yellow to red | Green up to 0.5 ms, red at 1 ms |
| A faint strip after the fill | The rest of the bar, up to 1 ms |
| The bar grows taller and fades toward its top | Past 1 ms, up to ten times its height at 10 ms |
| Diagonal stripes moving along it | The operator cooked this frame or the last one |
| A dim bar that stands still | It is not cooking now; the bar shows its last cook |
| A grey hatched bar on a COMP | Its cooking is switched off, by hand or by a tool such as a scene changer's Control Cook; nothing inside it cooks until it is switched back on |
The bottom bar is GPU memory. Operators that hold none have no bottom bar.
| What you see | What it means |
|---|---|
| The bar fills across the operator | GPU memory from 0 to 100 MB: full width at 100 MB, about three 4K RGBA textures |
| The fill goes from cyan to blue | Blue past 50 MB |
| The bar grows taller and fades downward | Past 100 MB, up to ten times its height at 1 GB |
The memory bar has no stripes.
On a COMP, the top bar adds the COMP's own cook time to everything inside it, and its stripes move while anything inside is cooking. The bottom bar counts the GPU memory of everything inside it.
The bars of the current operator and of selected operators sit a little wider, around their outline.
Values writes each bar's number next to it: the cook time above the operator and the GPU memory below it, dimmer while the operator is not cooking. A COMP whose cooking is switched off reads cooking off. Operators too small on screen to fit a number get none, so zoom in to read more of them. The numbers change ten times a second so they stay readable. Values is off unless you switch it on.
Finding the heaviest operators
While the bars are on, a small list in a corner of the network editor, the Top List, names the heaviest operators in the network you are viewing. It is the quickest way from "this network is slow" to the operator responsible.
- To go to an operator, click its row. The operator is selected and the view zooms to it.
- To rank by memory, click the GPU Memory tab along the top of the list; Cook Time switches back. Cook time counts only operators that cooked in the last second, so something that cooked once at startup does not stay on top.
- To see more or fewer operators, set List Rows.
- To keep the list but free the corner, click the arrow at the right of the tabs. The list folds to its tab row.
- To move it to another corner, or further from the edges, use the Overlay tab of FNS_Hub, which arranges every tool that draws on the network editor. List Corner and List Margin on Cook Bar hold the same settings. When another tool's list shares the corner, List Order decides which sits nearer the corner: lower is nearer.
- To hide the list, switch off Top List. The Overlay tab in FNS_Hub can also hide the list or the bars without switching Cook Bar off.
Bars in a big network
Max OPs sets how many operators get bars at once, counted from the middle of the view: 100 unless you change it, up to 250. Only operators in view count, so in a large network you can also zoom in on the part you care about.
More bars cost GPU time, measured on a 1536x700 pane:
| Max OPs | GPU per frame |
|---|---|
| 50 | about 0.1 ms |
| 100 | about 0.25 ms |
| 250 | about 1.4 ms |
A bigger pane costs more in proportion to its size.
Global Hog CHOP
Before a show it helps to know how much headroom a patch has. Ctrl+right-click
the toolbar button (Ctrl or Cmd on macOS), press Open Global Hog CHOP
on the CookBar page, or run Open Global Hog CHOP from quick-launch, to
open the parameters of a global Hog CHOP. Switch it on, dial in how much
of each frame it eats, and watch how the rest of your patch copes when it is
starved of cook time, with the bars showing where the time goes. It ships
switched off.
While the Hog is on, the toolbar button turns red, so a stress test is never left running by accident.
Your network stays as it is
The bars are drawn through the network overlay (FNS_OverlayRegistry, which installs with Cook Bar), shared with any other tool that draws over the network editor. Your network keeps its display flags, its annotations and its operators: the overlay is not one of them, and it leaves before every project save, so a saved project never holds it.
Earlier versions drew the bars as the network's background, which meant switching off its TOPs' display flags and fading its annotations while the bars were on. If a project still holds anything from that, Cook Bar removes it the next time it starts.
Get it
Tick it on the install page and it installs with the rest of your setup and stays up to date.
Download CookBar.tox Version 1.0.7, the tool on its own. It works in any project, and this copy never updates itself.
Where it appears
Network editor overlayposition 100
Toolbar buttonposition 31
Parameters
Its Registry page comes from FNS_ConfigRegistry, FNS_OverlayRegistry and FNS_ToolbarRegistry.
CookBar
| Control | Type / default | What it does |
|---|---|---|
ActiveActive |
on / offon | Draw a bar above each operator in the network you are viewing: the top bar is its cook time (CPU + GPU, full at 1 ms), the bottom one its GPU memory. Works while the timeline plays. |
Top ListToplist |
on / offon | Show a list of the viewed network's heaviest operators in a corner of the network editor while Cook Bar is on. Click a row to go there, or a tab at the top to change what it ranks by. |
Rank ByToprank |
menuCook Time | What the Top List ranks by: cook time (CPU and GPU per frame, a COMP with everything inside it) or GPU memory. |
List CornerTopcorner |
menuTop Left | Which corner of the network editor the Top List sits in. |
List MarginTopmargin |
number12 | How far the Top List sits from the edges of the network editor, and from any other tool's widget before it in the same corner, in screen points. |
List OrderToporder |
number100 | The Top List's place among the widgets in the same corner: lower sits nearer the corner. The Overlay tab in FNS_Hub sets it when you drag. |
List RowsToprows |
number8 | How many operators the Top List shows, 1 to 12. |
Top List CollapsedTopcollapsed |
on / offoff | Fold the Top List to its tab row. The arrow at the right of the tabs does the same. |
Max OPsMaxops |
number100 | The most operators drawn at once, nearest the middle of the view first (up to 250, what the shader holds). Only operators in view count. More costs GPU time: about 0.1 ms at 50, 0.25 ms at 100 and 1.4 ms at 250 for a 1536x700 pane (measured), growing with the pane's size. |
ValuesShowvalues |
on / offoff | Write each bar's number next to it: the cook time above the operator and the GPU memory below it. Shown on operators wide enough on screen to fit them. |
Annotation AlphaAnnotationalpha |
number0.2 | While the bars are on, the back colour of every annotation in the network you are viewing is lowered to this alpha so the bars behind it show, and put back when you leave or switch off. An annotation that is already fainter is left as it is. |
Open Global Hog CHOPOpenhog |
button | Open the parameters of the Global Hog CHOP, which eats frame time on purpose so you can watch how the network copes. Ctrl+right-click on the toolbar button does the same. The button turns red while the Hog is on. |