The Profiler is a live graph of your game’s speed. Use it to find which part of an island or game costs the most, and to check that a change made things faster.
A frame is one picture drawn on the screen. At 60 frames a second (60 fps) each frame has about 16.7 milliseconds (ms), and when one takes longer the motion hitches. The Profiler records the last 600 frames (about ten seconds) and shows how each one was spent, split between the CPU (the processor, which updates the island and prepares the drawing) and the GPU (the graphics chip, which draws the picture).
The Profiler is part of Jellydrop (the Game Creator). Players never see it.
Open the Profiler
Choose View, then Profiler, or press ⌘ 7. Press ⌘ 7 again to close it. The Profiler records only while it is open. Whether it is open, where it sits, how big it is and how its table is sorted are remembered on this computer.
By default it docks along the bottom of the view, and the island draws in the space that is left.
Find a slow moment
A short worked example: an island hitches when you turn on rain.
Record it
Open the Profiler and turn the rain on. Bars for the frames around the change scroll across the charts. A tall bar is a slow frame.
Click the tall bar
The Profiler stops recording and holds that frame, with a bright line over it. The readout above the charts says what it cost, for example "Frame 4172: 38.4 ms, 26 fps · CPU 6.2 ms · GPU 36.0 ms". Here the GPU is the slow side.
Read the marks
Look at the strip under the charts and the list above the table. A ◆ "Compiled 2 shaders" means the rain needed new graphics programs built the first time it appeared. That is a one-time cost, not a steady one.
Check the steady cost
Click Live (or press Esc) to go back to live recording. With the rain still on, look at the table, which averages the last two seconds. Click GPU ms to put the most expensive part first. If the same part stays at the top, that is what the rain costs every frame.
Move and resize it
Four buttons at the right of the bar choose where the Profiler sits. Each has a tip that names the place.
The default. Drag the Profiler’s top edge up or down to resize it.
A panel on the left. Drag its inner edge.
The same on the right.
Opens the Profiler in a window of its own that you can put on another screen. Closing that window closes the Profiler. |
Stops recording and hides it. ⌘ 7 does the same. |
Double-click a dock’s edge to put its size back. While your game runs in its own window, the editor sleeps behind a cover; a docked Profiler then shows along the bottom of that cover, and the only choices are the bottom and a window of its own.
Choose what to profile
The list labeled Frames from picks which frames the Profiler shows.
The view in the Island tab. It rests in the Game and QA tabs, behind the start screen and while the game runs in its own window, and then there is nothing new to show. |
A game started with Play full game in its own window. It appears when the game opens, and the Profiler turns to it. When it closes, the Profiler goes back to Island view. |
The preview in the Game tab, when it is playing. |
A capture you opened from a file. See Captures and comparing. |
Only playtests and the Game tab preview send frames, and only while the Profiler asks. The game that players run never does.
Read the charts
Two stacked-bar charts fill the middle. Each bar is one frame, with the newest at the right, so the picture scrolls from right to left. A bar’s height is the time that frame took, and its colors show where the time went. Hover a bar to read its numbers in the readout above the charts, and click it to hold that frame.
A GPU chart shows on computers that report graphics-chip times. A CPU chart always shows.
Two dashed lines cross each chart: 60 fps at 16.7 ms and 30 fps at 33.3 ms. Work that reaches above the 60 fps line cannot fit in a frame at 60 frames a second. The top of the chart’s scale is printed at the top right and adjusts to your frames. A spike taller than the scale is cut off and capped with a white tick, so one stall does not flatten every other frame.
What is healthy: bars that stay under the 60 fps line on both charts, with only an occasional taller one. A frame can be no faster than the slower of its CPU and GPU time, so find the chart that is higher. Brief spikes when an island loads, or when a look appears for the first time, are normal.
The island drawn to the screen.
The mirrored picture the water reflects.
The sun’s shadows and the view through the water.
A picture of distances, used for contact shadows and depth of field.
Edge smoothing and the soft shading where things meet.
The soft-focus blur, glow, and the last step that puts the picture on the screen.
The calculation of the water’s ripples.
The island’s systems updating for the frame, such as the water, the weather and the residents. Open the row in the table to see each system.
The processor’s work in preparing the drawing.
Work done between two frames, such as an island rebuilding after an edit.
A resident’s postcard being drawn.
Everything the other bands do not cover.
A line over the CPU chart: how long it was from the start of one frame to the start of the next. What players feel as the frame rate.
Marks
A strip under the charts shows a small shape wherever a frame has a note about what happened, to explain a spike. Marks close together share one shape. Click a frame to read its marks in the list above the table. A key under the strip names the shapes.
A graphics program was built for the first time, for example "Compiled 2 shaders: …". Expected the first time a look appears, and the usual cause of a one-time hitch. |
The app freed memory it no longer needed, such as "Memory cleaned up, 12 MB freed". Can cause a short hitch. |
A script held up the app ("Slow script: name (file), 63 ms") or a frame took over 50 ms with no single script to blame ("Long frame, 80 ms"). |
The game lowered or raised its own graphics to keep motion smooth, such as "Lowered contact shadows". See Graphics for players. |
"An island loaded" or "The island changed". |
The Mac’s condition changed: "The Mac is warming up", "The Mac is hot and may slow itself down", "The Mac is very hot and is slowing itself down", "The Mac has cooled down", "The system holds the processor to 80% to stay cool", "The processor is back to full speed", "Running on battery", "Plugged in". |
Look at one frame
Click a bar. The Profiler stops recording and holds that frame, with a bright line over it. The readout above the charts shows it in words: the frame’s number, how long it took and the frame rate it works out to, then "CPU" and "GPU" times, and "ms before the frame" when work was done between two frames. The table shows that frame alone.
Step to the previous or next frame. Click inside the Profiler first so it has the keys. |
Let go of the frame and go back to live recording. |
Reads that frame’s numbers in the readout without holding it. |
The breakdown table
On the right, a table lists every part of the frame, nested as it runs. It shows the average of the last two seconds (the heading says "Last two seconds, on average"), or the frame you hold ("Frame 4172").
The name of the part. Click the arrow beside a part to open or fold what is inside it. Systems and the island updates start folded because they are long and seldom the cause. Work done before the frame is labeled "before the frame". Click Part to go back to the order the frame runs. |
Time on the processor, in milliseconds. Click the heading to put the most expensive part first; click again for the order the frame runs. |
Time on the graphics chip. Click the heading to sort by it. Left out where the computer reports no GPU times. |
How many times the chip was asked to draw something. Fewer is cheaper. |
How many triangles it drew. Fewer is cheaper. |
Under the table is a list of counters for the same frame.
The totals for the whole frame. Compare them before and after a change. |
How many graphics programs exist. It grows when a new look appears (with a ◆ mark) and should hold steady once an island has been seen. |
How many shapes and pictures are held in memory. They should level off after an island has loaded. |
Memory the app is using. It rises and falls in steps; a drop is the "Memory cleaned up" mark. |
How many frames the still picture has been smoothed over. It counts up while the camera is still and starts again when you move. |
Pixels drawn for each pixel of the window. It follows the Resolution graphics setting, limited by the screen. A higher number costs more on the GPU. |
How many residents are walking about. |
On a Mac: 0 cool, 1 warm, 2 hot, 3 very hot. At 2 or 3 the Mac may slow itself down, and your timings read worse than the island deserves. |
On a Mac: how far the system holds the processor back to stay cool. 100 is full speed; less means it is being held back. |
On a Mac: 1 on battery, 0 plugged in. |
The Profiler’s own cost in ms, so you can tell it is not what slows the game. |
The bar
A button that stops and starts recording. While paused, the frames stay for you to look at. Clicking a frame pauses too.
Appears while a frame is held. Goes back to live.
Throws away the frames so far.
Times every single draw. See Deep profile.
Chooses the source. See above. |
Saves the frames shown as a capture file. Grayed out when there are none. |
Opens a capture file. |
Puts what shows now beside a capture. Click Comparing to stop. |
The middle values over the newest two seconds: frames per second, CPU ms, GPU ms and Slowest, the longest time between two frames, then "Mac is cool", "Mac is warm", "Mac is hot" or "Mac is very hot", and "On battery" when they apply. A healthy summary has frames per second near your display’s rate (60 on most screens) and CPU and GPU under 16.7 ms. |
Captures and comparing
A capture is a file with the frames you have, the graphics chip, and the drawing size. Its extension is .jwprofile. Keep one before a change and compare after it.
Record the starting point
Put the island or game in the state you want to measure, for example the same view with the same time of day. Let the charts run for several seconds, then click Save. A file dialog offers a name made of the island and the time. A notice says "Saved 240 frames".
Make your change
Edit the island or the game.
Compare
Choose Compare and pick the saved file. The Profiler shows two sides: A is what you see now, and B is the capture. Each side’s heading lists its graphics chip, drawing size and number of frames, with its frame rate and typical CPU and GPU times. A table lists each part with its CPU and GPU milliseconds on both sides and the Change, which is B’s number compared with A’s. A Whole frame, typical row sits at the top.
Stop comparing
Click Comparing to return to the live charts.
Change is B minus A. "▲ +1.20" means B took 1.20 ms more than A for that part, "▼ −0.80" means B took 0.80 ms less, and "same" means within 0.05 ms. When B is the capture you saved before your change, read it the other way round: ▲ means what shows now is faster than before, and ▼ means it is slower.
To look at a capture on its own, choose Open. The source list then reads Capture and the charts show the file, without recording. Compare captures made on the same computer at the same drawing size, or the numbers will not mean the same thing. A file that is not a capture is refused with "This file is not a profiler capture."
Deep profile
Deep profile times every draw on the graphics chip, one at a time. It answers which shader or which object costs the most. It slows the frame while on, so every time reads higher; the Profiler says so, and the times are for comparing shaders and objects with each other, not for judging the frame.
Turn it on
Click Deep profile. A note reads "Deep profile is on: …". Tabs for Parts, Shaders and Objects appear above the table, and Shaders opens.
Read the table
Shaders lists each shader by its GPU ms, how many draws it took and how many objects it drew. Objects lists each object the same way, with the number of shaders it used. Most in names the pass where it cost the most. Parts returns to the normal table. Until a frame has been timed, the table says "No draws timed yet. Turn on Deep profile to time every draw."
Turn it off
Click Deep profile again. It also turns off when you close the Profiler.
Messages
The Profiler explains itself when numbers might mislead.
The GPU chart and GPU ms column are left out. |
Another JellyWorks window, a game or a video is using the graphics chip, so GPU times read higher than your island costs. Close it for true numbers. |
The island view rests in the Game and QA tabs, behind the start screen and while the game runs in its own window, so no frames arrive. |
A game window is chosen but has sent nothing yet. |
Related
- QA and playtests starts the full game that the Profiler can watch.
- Graphics for players explains the quality steps shown as marks.
- The Jellydrop window covers the View menu and the bar under the tabs.