blog

Personal blog
git clone git://git.laack.co/blog.git
Log | Files | Refs

commit 9608725d7c80fa29ca7919dd53af00c87afdce6b
parent c9b15745850601525b67fb7db086f59b8f98e53a
Author: Andrew Laack <andrew@laack.co>
Date:   Sun, 20 Sep 2026 21:41:05 -0500

Wrote a blog post about pygame vs raylib for rendering

Diffstat:
Aposts/entries/pygame-vs-raylib.md | 344+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Mposts/gemini/feed.xml | 9++++++++-
Mposts/gemini/index.gmi | 1+
Aposts/gemini/pygame-vs-raylib.gmi | 349+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Mposts/notes/abg.md | 4++++
Mposts/site/feed.xml | 9++++++++-
Aposts/site/images/pygame-flamegraph.svg | 2203+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Aposts/site/images/rlib-flamegraph.svg | 2728+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Mposts/site/index.html | 1+
Aposts/site/pygame-vs-raylib.html | 458+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Dposts/wip/pygame-vs-raylib.md | 272-------------------------------------------------------------------------------
Apython/pygame-vs-raylib/profiling/prim-rlib.py | 155+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Apython/pygame-vs-raylib/profiling/prim.py | 146+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
13 files changed, 6405 insertions(+), 274 deletions(-)

diff --git a/posts/entries/pygame-vs-raylib.md b/posts/entries/pygame-vs-raylib.md @@ -0,0 +1,344 @@ +# PyGame vs. Raylib + +## Date: 2026/09/20 + +I implemented [Prim's algorithm](https://cp-algorithms.com/graph/mst_prim.html) to create a MST of a graph in Python. I also created a visualization of it, shown below. + +![](videos/prim.mkv) + +(This graph has 250 vertices and 1,000 edges. The source code used to generate this visualization can be found [here](https://git.laack.co/blog/file/python/pygame-vs-raylib/prim.py.html)) + +Prim's algorithm is worth understanding (albeit out of scope), and the problem it solves is finding the set of edges that minimizes the sum of their weights while guaranteeing there is exactly one path between any two vertices in the connected, weighted, undirected graph. In the case of my implementation, the weight of each edge was its length. + +As it relates to the animation, the following two things should be apparent: + +1. The first frame must draw every edge and vertex of the graph in a greyed-out color. +2. Each subsequent frame only has to draw one additional edge, the newly traversed edge, and one additional vertex, the vertex we are visiting. + +While we could render each frame from scratch based on the graph's state, any reasonable rendering program has the ability to additively draw geometries to avoid this re-computation, and I care a bit about performance (even though this is written in Python*). Since PyGame and Raylib both support this, I'll be using additive rendering in both of my implementations. + +\* I did rewrite the animation in C++ using Raylib so I could make it [my X11 wallpaper](https://git.laack.co/abg/), but that's for another blog post. + +## Raylib + +### Implementation + +Raylib has 2D rendered textures that can persist across frames. Here's some Python code that makes use of them to visualize Prim's algorithm: + +```python +import pyray as pr + +# ... (other imports, Vertex class definition, Edge class definition) + +pr.init_window(screen_width, screen_height, "prim") + +# ... (other initialization) + +texture = pr.load_render_texture(screen_width,screen_height) + +while !done: + if first: + start = time.monotonic_ns() + + # After calling begin_texture_mode(texture) all writes will be + # sent to the texture without having to specify we're writing to the + # texture. This is also how begin_drawing() works, but for frames. + + pr.begin_texture_mode(texture) + pr.clear_background(pr.BLACK) + + for edge in edge_list: + edge.draw_edge(pr.DARKGRAY) + for vertex in graph: + vertex.draw_vertex(pr.DARKGRAY) + + pr.end_texture_mode() + + source_rec = pr.Rectangle(0, 0, screen_width, screen_height) + dest_rec = pr.Rectangle(0, 0, screen_width, screen_height) + + pr.begin_drawing() + pr.draw_texture_pro(texture.texture, source_rec, dest_rec, pr.Vector2(0, 0), 0, pr.WHITE) + pr.end_drawing() + + first = False + + end = time.monotonic_ns() + first_times.append(end - start) + + continue + + # ... (perform one step of Prim's algorithm) + + if len(to_draw_edge) != 0 or len(to_draw_vert) != 0: + start = time.monotonic_ns() + + pr.begin_texture_mode(texture) + + for edge in to_draw_edge: + edge.draw_edge(pr.WHITE) + for vert in to_draw_vert: + vert.draw_vertex(pr.WHITE) + + pr.end_texture_mode() + + source_rec = pr.Rectangle(0, 0, screen_width, screen_height) + dest_rec = pr.Rectangle(0, 0, screen_width, screen_height) + + pr.begin_drawing() + pr.draw_texture_pro(texture.texture, source_rec, dest_rec, pr.Vector2(0, 0), 0, pr.WHITE) + pr.end_drawing() + + end = time.monotonic_ns() + redraw_times.append(end - start) + + to_draw_vert = [] + to_draw_edge = [] +``` + +Before our main iteration loop we initialize our texture. Then on our first iteration of the loop we draw each of the edges and vertices in our graph. On each subsequent iteration we only draw vertices added to `to_draw_vert` and edges added to `to_draw_edge`. Both lists are populated with edges and vertices that were visited since the last frame was rendered. + +This code is also instrumented to track the amount of time the first frame takes to render, and the amount of time each subsequent frame takes to render as well. + +Not included above are our Vertex and Edge classes which both implement draw functions. These functions have the following lines to draw geometries with Raylib: + +```python +pr.draw_circle(int(self.x),int(self.y), RADIUS, c) # vertex +pr.draw_line(int(self.v1.x), int(self.v1.y), int(self.v2.x), int(self.v2.y), c) # edge +``` + +Per the code comment in the larger code snippet, Raylib uses global state to track which canvas is being drawn to, so these functions can be called in texture mode or drawing mode with a similar effect. + +## PyGame + +### Implementation + +PyGame persists frame state across frames by default so we don't have to mess with rendered textures like we did with Raylib! Here's a some code that does the PyGame rendering: + +```python + +# ... (imports and such) + +pygame.init() +display = pygame.display.set_mode((screen_width,screen_height)) + +# ... (other initialization) + +while !done: + if first: + start = time.monotonic_ns() + + display.fill(BLACK) + + for edge in edge_list: + edge.draw_edge(display, LIGHT_GREY) + for vertex in graph: + vertex.draw_vertex(display, LIGHT_GREY) + + pygame.display.update() + + end = time.monotonic_ns() + first_time.append(end - start) + + first = False + continue + + # ... (perform one step of Prim's algorithm) + + start = time.monotonic_ns() + + for edge in to_draw_edge: + edge.draw_edge(display, white) + for vert in to_draw_vert: + vert.draw_vertex(display, white) + + pygame.display.update() + end = time.monotonic_ns() + + to_draw_vert = [] + to_draw_edge = [] +``` + +I find this code to be more readable than the Raylib code because we don't have to maintain a standalone texture, and I also like how writing to a display is more explicit in PyGame: + +```python +pygame.draw.circle(display, WHITE, (self.x,self.y), RADIUS) +pygame.draw.line(display, WHITE, (self.v1.x,self.v1.y), (self.v2.x,self.v2.y), LINE_WIDTH) +``` + +(notice the first parameter is the surface to write to) + +Despite this, the final `pygame.display.update()` is still using global state, which feels a bit strange given we have to specify which surface we are drawing to. + +## Benchmarking + +The benchmarks were executed under the following conditions: + +- Vertex count: 2,500 +- Edge count: 25,000 +- Screen dimensions: 5120x1440 +- CPU: 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz (4 cores, 8 threads) +- iGPU: Intel Corporation TigerLake-LP GT2 \[Iris Xe Graphics\] +- OS: Arch Linux + +Additionally, the metrics are all **averages** across 10 full runs. + +| Library | First frame time (ms) | Incremental frame time (ms) | +| - | -------------------------- | --------------- | +| Raylib | 29.87 ± 0.74 | 2.88 ± 1.11 | +| PyGame | 323.39 ± 44.60 | 5.59 ± 0.65 | + + +In this benchmark Raylib's average incremental frame render time was ~2x faster than PyGame's, and its first frame render time was ~11x faster. + +### Why Is PyGame So Slow? + +Let's instrument our code to dig deeper: + +```python +if first: + start = time.monotonic_ns() + display.fill(BLACK) + + edge_times = [] # new + vertex_times = [] # new + + for edge in edge_list: + se = time.monotonic_ns() # new + edge.draw_edge(display, LIGHT_GREY) + ee = time.monotonic_ns() # new + edge_times.append(ee - se) # new + + for vertex in graph: + sv = time.monotonic_ns() # new + vertex.draw_vertex(display, LIGHT_GREY) + ev = time.monotonic_ns() # new + vertex_times.append(ev - sv) # new + + pygame.display.update() + end = time.monotonic_ns() + first_time.append(end - start) + + first = False + + print("Edge time avg: " + str(sum(edge_times) / len(edge_times))) # new + print("Vertex time avg: " + str(sum(vertex_times) / len(vertex_times))) # new + + continue +``` + +(Notice the addition of timing for individual edge and vertex draw times for the first frame) + +Let's also update our Raylib code to do the same: + +```python +if first: + start = time.monotonic_ns() + pr.begin_texture_mode(texture) + pr.clear_background(pr.BLACK) + + edge_times = [] # new + vertex_times = [] # new + + for edge in edge_list: + es = time.monotonic_ns() # new + edge.draw_edge(pr.DARKGRAY) + ee = time.monotonic_ns() # new + edge_times.append(ee - es) # new + for vertex in graph: + vs = time.monotonic_ns() # new + vertex.draw_vertex(pr.DARKGRAY) + ve = time.monotonic_ns() # new + vertex_times.append(ve - vs) # new + + pr.end_texture_mode() + + source_rec = pr.Rectangle(0, 0, screen_width, screen_height) + dest_rec = pr.Rectangle(0, 0, screen_width, screen_height) + + pr.begin_drawing() + pr.draw_texture_pro(texture.texture, source_rec, dest_rec, pr.Vector2(0, 0), 0, pr.WHITE) + pr.end_drawing() + + end = time.monotonic_ns() + first_time.append(end - start) + + first = False + + print("Edge time avg: " + str(sum(edge_times) / len(edge_times))) # new + print("Vertex time avg: " + str(sum(vertex_times) / len(vertex_times))) # new + + continue +``` + +Running this updated code once we find: + +| Library | Avg. Edge Draw Time (ns)| Avg. Vertex Draw Time (ns)| +| - | - | - | +| PyGame | 9504.15048 | 686.6508 | +| Raylib | 944.15884 | 3016.1852 | + +PyGame is faster at drawing vertices (circles), but slower at drawing edges (lines). Since we are drawing many more edges than we are vertices, this contributes to making PyGame slower. + +PyGame is slower at drawing lines because it uses SDL which computes lines pixel by pixel on the CPU\*, while Raylib appends the line ends to a queue for batch processing, to be asynchronously processed by the GPU. + +In the case of vertices, Raylib calls `DrawCircleSector()`, and this in turn appends geometries to the GPU drawing queue, but each circle is made of many discrete geometries which are each appended to the queue, costing cycles. Contrasting this with the PyGame approach where PyGame only has to draw a few pixels onto the surface. + +\* There are ways to change the rendering pipeline for PyGame to make better use of GPUs, but these approaches are either complex or experimental. + +#### Is that why PyGame is slower? + +That's not the fully story. Let's consider what the numbers above mean. The first frame renders 2,500 vertices, 25,000 edges. Each subsequent frame renders 1 vertex and 1 edge. If we multiply these numbers with the values we calculated for the amount of time each draw takes, we get the following expected frame times: + +| Library | Expected First Frame Draw Time (ms)| Expected Subsequent Frame Draw Time (ms) | +| - | - | - | +| PyGame | 239.3204 | 0.0101908 | +| Raylib | 31.14443 | 0.003960344 | + +Based on this, we see the first frame times are on par with what we actually saw in our benchmarking, but the subsequent frame draw times are orders of magnitude faster than what we benchmarked, and since most frames are subsequent frames, they are severely impacting performance. Let's see if we can figure out why this disparity exists. + +##### PyGame Flamegraph + +![](images/pygame-flamegraph.svg) + +##### Raylib Flamegraph + +![](images/rlib-flamegraph.svg) + +We see most of our time is being spent in `EndDrawing()` for Raylib and `pygame.display.update()` for Pygame. After instrumenting these calls we find the following times per invocation: + +| Library | Function | Average Call Time (ms)| +| - | - | - | +| PyGame | `EndDrawing()` | 5.677199 | +| Raylib | `pygame.display.update()`| 2.680623 | + +Based on our original frame time benchmarks, these calls make up almost all of the time spent rendering subsequent frames. + +#### What Are These Functions Doing? + +In the case of Raylib, EndDrawing does a few things: + +1. Calls `rlDrawRenderBatchActive()` + - This clears the batched geometries queue, issuing the OpenGL calls +2. Calls `SwapScreenBuffer()` + - This swaps the buffer the display scans out. In effect, this ensures the frame we just drew becomes visible. + - This is done by with `glfwSwapBuffers()`, but this is beyond scope as it requires an understanding of OpenGL and double buffering. + - In the normal case (which is how our code uses it), this function returns after the instructions have been issued, not once the frame has been rendered. +3. Optionally waits to hit the target framerate in cases where rendering is happening faster than the target + +Most of the time spent here is on the second step. This is because issuing the instructions to swap will flush the driver's command stream, and once a few frames are in flight, this will block until the GPU retires one. + +Let's step through the PyGame `update()` function too: + +1. Calls `pg_update()` in `src_c/display.c` + - This performs some basic checks to make sure a display is set +2. `pg_update()` calls `SDL_UpdateWindowSurfaceRects` + - This copies the buffer into a buffer owned by the windowing system (X11 in my case) + +The main reason this is slower is PyGame copies the whole frame on the CPU for each frame while Raylib's frame is already in VRAM and the swap doesn't [blit](https://en.wikipedia.org/wiki/Bit_blit). + +## Takeaways + +Out of the box Raylib has better performance because it performs hardware accelerated rendering. In terms of ergonomics, they both have their own quirks. Raylib feels like a C library with Python bindings (because it is!), while PyGame feels inconsistent, mixing both explicit surface drawing, and global state for frame updates. + +Personally, I'm not keen on using PyGame again because I enjoy writing performant software, and the reality of Python is it can't be performant. This doesn't mean I won't ever write Python code again, it's useful for first passes at a problem, but if I want to productionize that software I'll have to rewrite it in a sensible programming language. The nice thing about doing a first pass on a project in Raylib is you can then rewrite it in C using Raylib directly, but the same isn't true for PyGame. diff --git a/posts/gemini/feed.xml b/posts/gemini/feed.xml @@ -7,9 +7,16 @@ <language>en-us</language> <managingEditor>andrew@laack.co</managingEditor> <webMaster>andrew@laack.co</webMaster> -<lastBuildDate>Fri, 18 Sep 2026 15:09:46 -0500</lastBuildDate> +<lastBuildDate>Sun, 20 Sep 2026 21:40:38 -0500</lastBuildDate> <atom:link href="gemini://blog.laack.co/feed.xml" rel="self" type="application/rss+xml"/> <item> +<title><![CDATA[PyGame vs. Raylib]]></title> +<link>gemini://blog.laack.co/pygame-vs-raylib.gmi</link> +<description><![CDATA[<p>I implemented <a href="https://cp-algorithms.com/graph/mst_prim.gmi">Prim’s algorithm</a> to create a MST of a graph in Python. I also created a visualization of it, shown below.</p><p><video src="videos/prim.mkv" controls=""><a href="videos/prim.mkv">Video</a></video></p><p>(This graph has 250 vertices and 1,000 edges. The source code used to generate this visualization can be found <a href="https://git.laack.co/blog/file/python/pygame-vs-raylib/prim.py.gmi">here</a>)</p><p>Prim’s algorithm is worth understanding (albeit out of scope), and the problem it solves is finding the set of edges that minimizes the sum of their weights while guaranteeing there is exactly one path between any two vertices in the connected, weighted, undirected graph. In the case of my implementation, the weight of each edge was its length.</p><p>As it relates to the animation, the following two things should be apparent:</p><ol type="1"><li>The first frame must draw every edge and vertex of the graph in a greyed-out color.</li><li>Each subsequent frame only has to draw one additional edge, the newly traversed edge, and one additional vertex, the vertex we are visiting.</li></ol><p>While we could render each frame from scratch based on the graph’s state, any reasonable rendering program has the ability to additively draw geometries to avoid this re-computation, and I care a bit about performance (even though this is written in Python*). Since PyGame and Raylib both support this, I’ll be using additive rendering in both of my implementations.</p><p>* I did rewrite the animation in C++ using Raylib so I could make it <a href="https://git.laack.co/abg/">my X11 wallpaper</a>, but that’s for another blog post.</p><h2 id="raylib">Raylib</h2><h3 id="implementation">Implementation</h3><p>Raylib has 2D rendered textures that can persist across frames. Here’s some Python code that makes use of them to visualize Prim’s algorithm:</p><div class="sourceCode" id="cb1"><pre class="sourceCode python"><code class="sourceCode python"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="im">import</span> pyray <span class="im">as</span> pr</span><span id="cb1-2"><a href="#cb1-2" aria-hidden="true" tabindex="-1"></a></span><span id="cb1-3"><a href="#cb1-3" aria-hidden="true" tabindex="-1"></a></span><span id="cb1-4"><a href="#cb1-4" aria-hidden="true" tabindex="-1"></a>pr.init_window(screen_width, screen_height, <span class="st">&quot;prim&quot;</span>)</span><span id="cb1-5"><a href="#cb1-5" aria-hidden="true" tabindex="-1"></a></span><span id="cb1-6"><a href="#cb1-6" aria-hidden="true" tabindex="-1"></a></span><span id="cb1-7"><a href="#cb1-7" aria-hidden="true" tabindex="-1"></a>texture <span class="op">=</span> pr.load_render_texture(screen_width,screen_height)</span><span id="cb1-8"><a href="#cb1-8" aria-hidden="true" tabindex="-1"></a></span><span id="cb1-9"><a href="#cb1-9" aria-hidden="true" tabindex="-1"></a><span class="cf">while</span><span class="op">!</span>done:</span><span id="cb1-10"><a href="#cb1-10" aria-hidden="true" tabindex="-1"></a><span class="cf">if</span> first:</span><span id="cb1-11"><a href="#cb1-11" aria-hidden="true" tabindex="-1"></a> start <span class="op">=</span> time.monotonic_ns()</span><span id="cb1-12"><a href="#cb1-12" aria-hidden="true" tabindex="-1"></a></span><span id="cb1-13"><a href="#cb1-13" aria-hidden="true" tabindex="-1"></a><span class="co"># After calling begin_texture_mode(texture) all writes will be </span></span><span id="cb1-14"><a href="#cb1-14" aria-hidden="true" tabindex="-1"></a><span class="co"># sent to the texture without having to specify we&#39;re writing to the </span></span><span id="cb1-15"><a href="#cb1-15" aria-hidden="true" tabindex="-1"></a><span class="co"># texture. This is also how begin_drawing() works, but for frames.</span></span><span id="cb1-16"><a href="#cb1-16" aria-hidden="true" tabindex="-1"></a></span><span id="cb1-17"><a href="#cb1-17" aria-hidden="true" tabindex="-1"></a> pr.begin_texture_mode(texture)</span><span id="cb1-18"><a href="#cb1-18" aria-hidden="true" tabindex="-1"></a> pr.clear_background(pr.BLACK)</span><span id="cb1-19"><a href="#cb1-19" aria-hidden="true" tabindex="-1"></a></span><span id="cb1-20"><a href="#cb1-20" aria-hidden="true" tabindex="-1"></a><span class="cf">for</span> edge <span class="kw">in</span> edge_list:</span><span id="cb1-21"><a href="#cb1-21" aria-hidden="true" tabindex="-1"></a> edge.draw_edge(pr.DARKGRAY)</span><span id="cb1-22"><a href="#cb1-22" aria-hidden="true" tabindex="-1"></a><span class="cf">for</span> vertex <span class="kw">in</span> graph:</span><span id="cb1-23"><a href="#cb1-23" aria-hidden="true" tabindex="-1"></a> vertex.draw_vertex(pr.DARKGRAY)</span><span id="cb1-24"><a href="#cb1-24" aria-hidden="true" tabindex="-1"></a></span><span id="cb1-25"><a href="#cb1-25" aria-hidden="true" tabindex="-1"></a> pr.end_texture_mode()</span><span id="cb1-26"><a href="#cb1-26" aria-hidden="true" tabindex="-1"></a></span><span id="cb1-27"><a href="#cb1-27" aria-hidden="true" tabindex="-1"></a> source_rec <span class="op">=</span> pr.Rectangle(<span class="dv">0</span>, <span class="dv">0</span>, screen_width, screen_height)</span><span id="cb1-28"><a href="#cb1-28" aria-hidden="true" tabindex="-1"></a> dest_rec <span class="op">=</span> pr.Rectangle(<span class="dv">0</span>, <span class="dv">0</span>, screen_width, screen_height)</span><span id="cb1-29"><a href="#cb1-29" aria-hidden="true" tabindex="-1"></a></span><span id="cb1-30"><a href="#cb1-30" aria-hidden="true" tabindex="-1"></a> pr.begin_drawing()</span><span id="cb1-31"><a href="#cb1-31" aria-hidden="true" tabindex="-1"></a> pr.draw_texture_pro(texture.texture, source_rec, dest_rec, pr.Vector2(<span class="dv">0</span>, <span class="dv">0</span>), <span class="dv">0</span>, pr.WHITE)</span><span id="cb1-32"><a href="#cb1-32" aria-hidden="true" tabindex="-1"></a> pr.end_drawing()</span><span id="cb1-33"><a href="#cb1-33" aria-hidden="true" tabindex="-1"></a></span><span id="cb1-34"><a href="#cb1-34" aria-hidden="true" tabindex="-1"></a> first <span class="op">=</span><span class="va">False</span></span><span id="cb1-35"><a href="#cb1-35" aria-hidden="true" tabindex="-1"></a></span><span id="cb1-36"><a href="#cb1-36" aria-hidden="true" tabindex="-1"></a> end <span class="op">=</span> time.monotonic_ns()</span><span id="cb1-37"><a href="#cb1-37" aria-hidden="true" tabindex="-1"></a> first_times.append(end <span class="op">-</span> start)</span><span id="cb1-38"><a href="#cb1-38" aria-hidden="true" tabindex="-1"></a></span><span id="cb1-39"><a href="#cb1-39" aria-hidden="true" tabindex="-1"></a><span class="cf">continue</span></span><span id="cb1-40"><a href="#cb1-40" aria-hidden="true" tabindex="-1"></a></span><span id="cb1-41"><a href="#cb1-41" aria-hidden="true" tabindex="-1"></a><span class="co"># ... (perform one step of Prim&#39;s algorithm)</span></span><span id="cb1-42"><a href="#cb1-42" aria-hidden="true" tabindex="-1"></a></span><span id="cb1-43"><a href="#cb1-43" aria-hidden="true" tabindex="-1"></a><span class="cf">if</span><span class="bu">len</span>(to_draw_edge) <span class="op">!=</span><span class="dv">0</span><span class="kw">or</span><span class="bu">len</span>(to_draw_vert) <span class="op">!=</span><span class="dv">0</span>:</span><span id="cb1-44"><a href="#cb1-44" aria-hidden="true" tabindex="-1"></a> start <span class="op">=</span> time.monotonic_ns()</span><span id="cb1-45"><a href="#cb1-45" aria-hidden="true" tabindex="-1"></a></span><span id="cb1-46"><a href="#cb1-46" aria-hidden="true" tabindex="-1"></a> pr.begin_texture_mode(texture)</span><span id="cb1-47"><a href="#cb1-47" aria-hidden="true" tabindex="-1"></a></span><span id="cb1-48"><a href="#cb1-48" aria-hidden="true" tabindex="-1"></a><span class="cf">for</span> edge <span class="kw">in</span> to_draw_edge:</span><span id="cb1-49"><a href="#cb1-49" aria-hidden="true" tabindex="-1"></a> edge.draw_edge(pr.WHITE)</span><span id="cb1-50"><a href="#cb1-50" aria-hidden="true" tabindex="-1"></a><span class="cf">for</span> vert <span class="kw">in</span> to_draw_vert:</span><span id="cb1-51"><a href="#cb1-51" aria-hidden="true" tabindex="-1"></a> vert.draw_vertex(pr.WHITE)</span><span id="cb1-52"><a href="#cb1-52" aria-hidden="true" tabindex="-1"></a></span><span id="cb1-53"><a href="#cb1-53" aria-hidden="true" tabindex="-1"></a> pr.end_texture_mode()</span><span id="cb1-54"><a href="#cb1-54" aria-hidden="true" tabindex="-1"></a></span><span id="cb1-55"><a href="#cb1-55" aria-hidden="true" tabindex="-1"></a> source_rec <span class="op">=</span> pr.Rectangle(<span class="dv">0</span>, <span class="dv">0</span>, screen_width, screen_height)</span><span id="cb1-56"><a href="#cb1-56" aria-hidden="true" tabindex="-1"></a> dest_rec <span class="op">=</span> pr.Rectangle(<span class="dv">0</span>, <span class="dv">0</span>, screen_width, screen_height)</span><span id="cb1-57"><a href="#cb1-57" aria-hidden="true" tabindex="-1"></a></span><span id="cb1-58"><a href="#cb1-58" aria-hidden="true" tabindex="-1"></a> pr.begin_drawing()</span><span id="cb1-59"><a href="#cb1-59" aria-hidden="true" tabindex="-1"></a> pr.draw_texture_pro(texture.texture, source_rec, dest_rec, pr.Vector2(<span class="dv">0</span>, <span class="dv">0</span>), <span class="dv">0</span>, pr.WHITE)</span><span id="cb1-60"><a href="#cb1-60" aria-hidden="true" tabindex="-1"></a> pr.end_drawing()</span><span id="cb1-61"><a href="#cb1-61" aria-hidden="true" tabindex="-1"></a></span><span id="cb1-62"><a href="#cb1-62" aria-hidden="true" tabindex="-1"></a> end <span class="op">=</span> time.monotonic_ns()</span><span id="cb1-63"><a href="#cb1-63" aria-hidden="true" tabindex="-1"></a> redraw_times.append(end <span class="op">-</span> start)</span><span id="cb1-64"><a href="#cb1-64" aria-hidden="true" tabindex="-1"></a></span><span id="cb1-65"><a href="#cb1-65" aria-hidden="true" tabindex="-1"></a> to_draw_vert <span class="op">=</span> []</span><span id="cb1-66"><a href="#cb1-66" aria-hidden="true" tabindex="-1"></a> to_draw_edge <span class="op">=</span> []</span></code></pre></div><p>Before our main iteration loop we initialize our texture. Then on our first iteration of the loop we draw each of the edges and vertices in our graph. On each subsequent iteration we only draw vertices added to <code>to_draw_vert</code> and edges added to <code>to_draw_edge</code>. Both lists are populated with edges and vertices that were visited since the last frame was rendered.</p><p>This code is also instrumented to track the amount of time the first frame takes to render, and the amount of time each subsequent frame takes to render as well.</p><p>Not included above are our Vertex and Edge classes which both implement draw functions. These functions have the following lines to draw geometries with Raylib:</p><div class="sourceCode" id="cb2"><pre class="sourceCode python"><code class="sourceCode python"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a>pr.draw_circle(<span class="bu">int</span>(<span class="va">self</span>.x),<span class="bu">int</span>(<span class="va">self</span>.y), RADIUS, c) <span class="co"># vertex</span></span><span id="cb2-2"><a href="#cb2-2" aria-hidden="true" tabindex="-1"></a>pr.draw_line(<span class="bu">int</span>(<span class="va">self</span>.v1.x), <span class="bu">int</span>(<span class="va">self</span>.v1.y), <span class="bu">int</span>(<span class="va">self</span>.v2.x), <span class="bu">int</span>(<span class="va">self</span>.v2.y), c) <span class="co"># edge</span></span></code></pre></div><p>Per the code comment in the larger code snippet, Raylib uses global state to track which canvas is being drawn to, so these functions can be called in texture mode or drawing mode with a similar effect.</p><h2 id="pygame">PyGame</h2><h3 id="implementation-1">Implementation</h3><p>PyGame persists frame state across frames by default so we don’t have to mess with rendered textures like we did with Raylib! Here’s a some code that does the PyGame rendering:</p><div class="sourceCode" id="cb3"><pre class="sourceCode python"><code class="sourceCode python"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a></span><span id="cb3-2"><a href="#cb3-2" aria-hidden="true" tabindex="-1"></a></span><span id="cb3-3"><a href="#cb3-3" aria-hidden="true" tabindex="-1"></a>pygame.init()</span><span id="cb3-4"><a href="#cb3-4" aria-hidden="true" tabindex="-1"></a>display <span class="op">=</span> pygame.display.set_mode((screen_width,screen_height))</span><span id="cb3-5"><a href="#cb3-5" aria-hidden="true" tabindex="-1"></a></span><span id="cb3-6"><a href="#cb3-6" aria-hidden="true" tabindex="-1"></a></span><span id="cb3-7"><a href="#cb3-7" aria-hidden="true" tabindex="-1"></a><span class="cf">while</span><span class="op">!</span>done:</span><span id="cb3-8"><a href="#cb3-8" aria-hidden="true" tabindex="-1"></a><span class="cf">if</span> first:</span><span id="cb3-9"><a href="#cb3-9" aria-hidden="true" tabindex="-1"></a> start <span class="op">=</span> time.monotonic_ns()</span><span id="cb3-10"><a href="#cb3-10" aria-hidden="true" tabindex="-1"></a></span><span id="cb3-11"><a href="#cb3-11" aria-hidden="true" tabindex="-1"></a> display.fill(BLACK)</span><span id="cb3-12"><a href="#cb3-12" aria-hidden="true" tabindex="-1"></a></span><span id="cb3-13"><a href="#cb3-13" aria-hidden="true" tabindex="-1"></a><span class="cf">for</span> edge <span class="kw">in</span> edge_list:</span><span id="cb3-14"><a href="#cb3-14" aria-hidden="true" tabindex="-1"></a> edge.draw_edge(display, LIGHT_GREY)</span><span id="cb3-15"><a href="#cb3-15" aria-hidden="true" tabindex="-1"></a><span class="cf">for</span> vertex <span class="kw">in</span> graph:</span><span id="cb3-16"><a href="#cb3-16" aria-hidden="true" tabindex="-1"></a> vertex.draw_vertex(display, LIGHT_GREY)</span><span id="cb3-17"><a href="#cb3-17" aria-hidden="true" tabindex="-1"></a></span><span id="cb3-18"><a href="#cb3-18" aria-hidden="true" tabindex="-1"></a> pygame.display.update()</span><span id="cb3-19"><a href="#cb3-19" aria-hidden="true" tabindex="-1"></a></span><span id="cb3-20"><a href="#cb3-20" aria-hidden="true" tabindex="-1"></a> end <span class="op">=</span> time.monotonic_ns()</span><span id="cb3-21"><a href="#cb3-21" aria-hidden="true" tabindex="-1"></a> first_time.append(end <span class="op">-</span> start)</span><span id="cb3-22"><a href="#cb3-22" aria-hidden="true" tabindex="-1"></a></span><span id="cb3-23"><a href="#cb3-23" aria-hidden="true" tabindex="-1"></a> first <span class="op">=</span><span class="va">False</span></span><span id="cb3-24"><a href="#cb3-24" aria-hidden="true" tabindex="-1"></a><span class="cf">continue</span></span><span id="cb3-25"><a href="#cb3-25" aria-hidden="true" tabindex="-1"></a></span><span id="cb3-26"><a href="#cb3-26" aria-hidden="true" tabindex="-1"></a><span class="co"># ... (perform one step of Prim&#39;s algorithm)</span></span><span id="cb3-27"><a href="#cb3-27" aria-hidden="true" tabindex="-1"></a></span><span id="cb3-28"><a href="#cb3-28" aria-hidden="true" tabindex="-1"></a> start <span class="op">=</span> time.monotonic_ns()</span><span id="cb3-29"><a href="#cb3-29" aria-hidden="true" tabindex="-1"></a></span><span id="cb3-30"><a href="#cb3-30" aria-hidden="true" tabindex="-1"></a><span class="cf">for</span> edge <span class="kw">in</span> to_draw_edge:</span><span id="cb3-31"><a href="#cb3-31" aria-hidden="true" tabindex="-1"></a> edge.draw_edge(display, white)</span><span id="cb3-32"><a href="#cb3-32" aria-hidden="true" tabindex="-1"></a><span class="cf">for</span> vert <span class="kw">in</span> to_draw_vert:</span><span id="cb3-33"><a href="#cb3-33" aria-hidden="true" tabindex="-1"></a> vert.draw_vertex(display, white)</span><span id="cb3-34"><a href="#cb3-34" aria-hidden="true" tabindex="-1"></a></span><span id="cb3-35"><a href="#cb3-35" aria-hidden="true" tabindex="-1"></a> pygame.display.update()</span><span id="cb3-36"><a href="#cb3-36" aria-hidden="true" tabindex="-1"></a> end <span class="op">=</span> time.monotonic_ns()</span><span id="cb3-37"><a href="#cb3-37" aria-hidden="true" tabindex="-1"></a></span><span id="cb3-38"><a href="#cb3-38" aria-hidden="true" tabindex="-1"></a> to_draw_vert <span class="op">=</span> []</span><span id="cb3-39"><a href="#cb3-39" aria-hidden="true" tabindex="-1"></a> to_draw_edge <span class="op">=</span> []</span></code></pre></div><p>I find this code to be more readable than the Raylib code because we don’t have to maintain a standalone texture, and I also like how writing to a display is more explicit in PyGame:</p><div class="sourceCode" id="cb4"><pre class="sourceCode python"><code class="sourceCode python"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a>pygame.draw.circle(display, WHITE, (<span class="va">self</span>.x,<span class="va">self</span>.y), RADIUS)</span><span id="cb4-2"><a href="#cb4-2" aria-hidden="true" tabindex="-1"></a>pygame.draw.line(display, WHITE, (<span class="va">self</span>.v1.x,<span class="va">self</span>.v1.y), (<span class="va">self</span>.v2.x,<span class="va">self</span>.v2.y), LINE_WIDTH)</span></code></pre></div><p>(notice the first parameter is the surface to write to)</p><p>Despite this, the final <code>pygame.display.update()</code> is still using global state, which feels a bit strange given we have to specify which surface we are drawing to.</p><h2 id="benchmarking">Benchmarking</h2><p>The benchmarks were executed under the following conditions:</p><ul><li>Vertex count: 2,500</li><li>Edge count: 25,000</li><li>Screen dimensions: 5120x1440</li><li>CPU: 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz (4 cores, 8 threads)</li><li>iGPU: Intel Corporation TigerLake-LP GT2 [Iris Xe Graphics]</li><li>OS: Arch Linux</li></ul><p>Additionally, the metrics are all <strong>averages</strong> across 10 full runs.</p><table><thead><tr><th>Library</th><th>First frame time (ms)</th><th>Incremental frame time (ms)</th></tr></thead><tbody><tr><td>Raylib</td><td>29.87 ± 0.74</td><td>2.88 ± 1.11</td></tr><tr><td>PyGame</td><td>323.39 ± 44.60</td><td>5.59 ± 0.65</td></tr></tbody></table><p>In this benchmark Raylib’s average incremental frame render time was ~2x faster than PyGame’s, and its first frame render time was ~11x faster.</p><h3 id="why-is-pygame-so-slow">Why Is PyGame So Slow?</h3><p>Let’s instrument our code to dig deeper:</p><div class="sourceCode" id="cb5"><pre class="sourceCode python"><code class="sourceCode python"><span id="cb5-1"><a href="#cb5-1" aria-hidden="true" tabindex="-1"></a><span class="cf">if</span> first:</span><span id="cb5-2"><a href="#cb5-2" aria-hidden="true" tabindex="-1"></a> start <span class="op">=</span> time.monotonic_ns()</span><span id="cb5-3"><a href="#cb5-3" aria-hidden="true" tabindex="-1"></a> display.fill(BLACK)</span><span id="cb5-4"><a href="#cb5-4" aria-hidden="true" tabindex="-1"></a></span><span id="cb5-5"><a href="#cb5-5" aria-hidden="true" tabindex="-1"></a> edge_times <span class="op">=</span> [] <span class="co"># new</span></span><span id="cb5-6"><a href="#cb5-6" aria-hidden="true" tabindex="-1"></a> vertex_times <span class="op">=</span> [] <span class="co"># new</span></span><span id="cb5-7"><a href="#cb5-7" aria-hidden="true" tabindex="-1"></a></span><span id="cb5-8"><a href="#cb5-8" aria-hidden="true" tabindex="-1"></a><span class="cf">for</span> edge <span class="kw">in</span> edge_list:</span><span id="cb5-9"><a href="#cb5-9" aria-hidden="true" tabindex="-1"></a> se <span class="op">=</span> time.monotonic_ns() <span class="co"># new</span></span><span id="cb5-10"><a href="#cb5-10" aria-hidden="true" tabindex="-1"></a> edge.draw_edge(display, LIGHT_GREY)</span><span id="cb5-11"><a href="#cb5-11" aria-hidden="true" tabindex="-1"></a> ee <span class="op">=</span> time.monotonic_ns() <span class="co"># new</span></span><span id="cb5-12"><a href="#cb5-12" aria-hidden="true" tabindex="-1"></a> edge_times.append(ee <span class="op">-</span> se) <span class="co"># new</span></span><span id="cb5-13"><a href="#cb5-13" aria-hidden="true" tabindex="-1"></a></span><span id="cb5-14"><a href="#cb5-14" aria-hidden="true" tabindex="-1"></a><span class="cf">for</span> vertex <span class="kw">in</span> graph:</span><span id="cb5-15"><a href="#cb5-15" aria-hidden="true" tabindex="-1"></a> sv <span class="op">=</span> time.monotonic_ns() <span class="co"># new</span></span><span id="cb5-16"><a href="#cb5-16" aria-hidden="true" tabindex="-1"></a> vertex.draw_vertex(display, LIGHT_GREY)</span><span id="cb5-17"><a href="#cb5-17" aria-hidden="true" tabindex="-1"></a> ev <span class="op">=</span> time.monotonic_ns() <span class="co"># new</span></span><span id="cb5-18"><a href="#cb5-18" aria-hidden="true" tabindex="-1"></a> vertex_times.append(ev <span class="op">-</span> sv) <span class="co"># new</span></span><span id="cb5-19"><a href="#cb5-19" aria-hidden="true" tabindex="-1"></a></span><span id="cb5-20"><a href="#cb5-20" aria-hidden="true" tabindex="-1"></a> pygame.display.update()</span><span id="cb5-21"><a href="#cb5-21" aria-hidden="true" tabindex="-1"></a> end <span class="op">=</span> time.monotonic_ns()</span><span id="cb5-22"><a href="#cb5-22" aria-hidden="true" tabindex="-1"></a> first_time.append(end <span class="op">-</span> start)</span><span id="cb5-23"><a href="#cb5-23" aria-hidden="true" tabindex="-1"></a></span><span id="cb5-24"><a href="#cb5-24" aria-hidden="true" tabindex="-1"></a> first <span class="op">=</span><span class="va">False</span></span><span id="cb5-25"><a href="#cb5-25" aria-hidden="true" tabindex="-1"></a></span><span id="cb5-26"><a href="#cb5-26" aria-hidden="true" tabindex="-1"></a><span class="bu">print</span>(<span class="st">&quot;Edge time avg: &quot;</span><span class="op">+</span><span class="bu">str</span>(<span class="bu">sum</span>(edge_times) <span class="op">/</span><span class="bu">len</span>(edge_times))) <span class="co"># new </span></span><span id="cb5-27"><a href="#cb5-27" aria-hidden="true" tabindex="-1"></a><span class="bu">print</span>(<span class="st">&quot;Vertex time avg: &quot;</span><span class="op">+</span><span class="bu">str</span>(<span class="bu">sum</span>(vertex_times) <span class="op">/</span><span class="bu">len</span>(vertex_times))) <span class="co"># new</span></span><span id="cb5-28"><a href="#cb5-28" aria-hidden="true" tabindex="-1"></a></span><span id="cb5-29"><a href="#cb5-29" aria-hidden="true" tabindex="-1"></a><span class="cf">continue</span></span></code></pre></div><p>(Notice the addition of timing for individual edge and vertex draw times for the first frame)</p><p>Let’s also update our Raylib code to do the same:</p><div class="sourceCode" id="cb6"><pre class="sourceCode python"><code class="sourceCode python"><span id="cb6-1"><a href="#cb6-1" aria-hidden="true" tabindex="-1"></a><span class="cf">if</span> first:</span><span id="cb6-2"><a href="#cb6-2" aria-hidden="true" tabindex="-1"></a> start <span class="op">=</span> time.monotonic_ns()</span><span id="cb6-3"><a href="#cb6-3" aria-hidden="true" tabindex="-1"></a> pr.begin_texture_mode(texture)</span><span id="cb6-4"><a href="#cb6-4" aria-hidden="true" tabindex="-1"></a> pr.clear_background(pr.BLACK)</span><span id="cb6-5"><a href="#cb6-5" aria-hidden="true" tabindex="-1"></a></span><span id="cb6-6"><a href="#cb6-6" aria-hidden="true" tabindex="-1"></a> edge_times <span class="op">=</span> [] <span class="co"># new</span></span><span id="cb6-7"><a href="#cb6-7" aria-hidden="true" tabindex="-1"></a> vertex_times <span class="op">=</span> [] <span class="co"># new</span></span><span id="cb6-8"><a href="#cb6-8" aria-hidden="true" tabindex="-1"></a></span><span id="cb6-9"><a href="#cb6-9" aria-hidden="true" tabindex="-1"></a><span class="cf">for</span> edge <span class="kw">in</span> edge_list:</span><span id="cb6-10"><a href="#cb6-10" aria-hidden="true" tabindex="-1"></a> es <span class="op">=</span> time.monotonic_ns() <span class="co"># new</span></span><span id="cb6-11"><a href="#cb6-11" aria-hidden="true" tabindex="-1"></a> edge.draw_edge(pr.DARKGRAY)</span><span id="cb6-12"><a href="#cb6-12" aria-hidden="true" tabindex="-1"></a> ee <span class="op">=</span> time.monotonic_ns() <span class="co"># new</span></span><span id="cb6-13"><a href="#cb6-13" aria-hidden="true" tabindex="-1"></a> edge_times.append(ee <span class="op">-</span> es) <span class="co"># new</span></span><span id="cb6-14"><a href="#cb6-14" aria-hidden="true" tabindex="-1"></a><span class="cf">for</span> vertex <span class="kw">in</span> graph:</span><span id="cb6-15"><a href="#cb6-15" aria-hidden="true" tabindex="-1"></a> vs <span class="op">=</span> time.monotonic_ns() <span class="co"># new</span></span><span id="cb6-16"><a href="#cb6-16" aria-hidden="true" tabindex="-1"></a> vertex.draw_vertex(pr.DARKGRAY)</span><span id="cb6-17"><a href="#cb6-17" aria-hidden="true" tabindex="-1"></a> ve <span class="op">=</span> time.monotonic_ns() <span class="co"># new</span></span><span id="cb6-18"><a href="#cb6-18" aria-hidden="true" tabindex="-1"></a> vertex_times.append(ve <span class="op">-</span> vs) <span class="co"># new</span></span><span id="cb6-19"><a href="#cb6-19" aria-hidden="true" tabindex="-1"></a></span><span id="cb6-20"><a href="#cb6-20" aria-hidden="true" tabindex="-1"></a> pr.end_texture_mode()</span><span id="cb6-21"><a href="#cb6-21" aria-hidden="true" tabindex="-1"></a></span><span id="cb6-22"><a href="#cb6-22" aria-hidden="true" tabindex="-1"></a> source_rec <span class="op">=</span> pr.Rectangle(<span class="dv">0</span>, <span class="dv">0</span>, screen_width, screen_height)</span><span id="cb6-23"><a href="#cb6-23" aria-hidden="true" tabindex="-1"></a> dest_rec <span class="op">=</span> pr.Rectangle(<span class="dv">0</span>, <span class="dv">0</span>, screen_width, screen_height)</span><span id="cb6-24"><a href="#cb6-24" aria-hidden="true" tabindex="-1"></a></span><span id="cb6-25"><a href="#cb6-25" aria-hidden="true" tabindex="-1"></a> pr.begin_drawing()</span><span id="cb6-26"><a href="#cb6-26" aria-hidden="true" tabindex="-1"></a> pr.draw_texture_pro(texture.texture, source_rec, dest_rec, pr.Vector2(<span class="dv">0</span>, <span class="dv">0</span>), <span class="dv">0</span>, pr.WHITE)</span><span id="cb6-27"><a href="#cb6-27" aria-hidden="true" tabindex="-1"></a> pr.end_drawing()</span><span id="cb6-28"><a href="#cb6-28" aria-hidden="true" tabindex="-1"></a></span><span id="cb6-29"><a href="#cb6-29" aria-hidden="true" tabindex="-1"></a> end <span class="op">=</span> time.monotonic_ns()</span><span id="cb6-30"><a href="#cb6-30" aria-hidden="true" tabindex="-1"></a> first_time.append(end <span class="op">-</span> start)</span><span id="cb6-31"><a href="#cb6-31" aria-hidden="true" tabindex="-1"></a></span><span id="cb6-32"><a href="#cb6-32" aria-hidden="true" tabindex="-1"></a> first <span class="op">=</span><span class="va">False</span></span><span id="cb6-33"><a href="#cb6-33" aria-hidden="true" tabindex="-1"></a></span><span id="cb6-34"><a href="#cb6-34" aria-hidden="true" tabindex="-1"></a><span class="bu">print</span>(<span class="st">&quot;Edge time avg: &quot;</span><span class="op">+</span><span class="bu">str</span>(<span class="bu">sum</span>(edge_times) <span class="op">/</span><span class="bu">len</span>(edge_times))) <span class="co"># new</span></span><span id="cb6-35"><a href="#cb6-35" aria-hidden="true" tabindex="-1"></a><span class="bu">print</span>(<span class="st">&quot;Vertex time avg: &quot;</span><span class="op">+</span><span class="bu">str</span>(<span class="bu">sum</span>(vertex_times) <span class="op">/</span><span class="bu">len</span>(vertex_times))) <span class="co"># new</span></span><span id="cb6-36"><a href="#cb6-36" aria-hidden="true" tabindex="-1"></a></span><span id="cb6-37"><a href="#cb6-37" aria-hidden="true" tabindex="-1"></a><span class="cf">continue</span></span></code></pre></div><p>Running this updated code once we find:</p><table><thead><tr><th>Library</th><th>Avg. Edge Draw Time (ns)</th><th>Avg. Vertex Draw Time (ns)</th></tr></thead><tbody><tr><td>PyGame</td><td>9504.15048</td><td>686.6508</td></tr><tr><td>Raylib</td><td>944.15884</td><td>3016.1852</td></tr></tbody></table><p>PyGame is faster at drawing vertices (circles), but slower at drawing edges (lines). Since we are drawing many more edges than we are vertices, this contributes to making PyGame slower.</p><p>PyGame is slower at drawing lines because it uses SDL which computes lines pixel by pixel on the CPU*, while Raylib appends the line ends to a queue for batch processing, to be asynchronously processed by the GPU.</p><p>In the case of vertices, Raylib calls <code>DrawCircleSector()</code>, and this in turn appends geometries to the GPU drawing queue, but each circle is made of many discrete geometries which are each appended to the queue, costing cycles. Contrasting this with the PyGame approach where PyGame only has to draw a few pixels onto the surface.</p><p>* There are ways to change the rendering pipeline for PyGame to make better use of GPUs, but these approaches are either complex or experimental.</p><h4 id="is-that-why-pygame-is-slower">Is that why PyGame is slower?</h4><p>That’s not the fully story. Let’s consider what the numbers above mean. The first frame renders 2,500 vertices, 25,000 edges. Each subsequent frame renders 1 vertex and 1 edge. If we multiply these numbers with the values we calculated for the amount of time each draw takes, we get the following expected frame times:</p><table><colgroup><col style="width: 33%" /><col style="width: 33%" /><col style="width: 33%" /></colgroup><thead><tr><th>Library</th><th>Expected First Frame Draw Time (ms)</th><th>Expected Subsequent Frame Draw Time (ms)</th></tr></thead><tbody><tr><td>PyGame</td><td>239.3204</td><td>0.0101908</td></tr><tr><td>Raylib</td><td>31.14443</td><td>0.003960344</td></tr></tbody></table><p>Based on this, we see the first frame times are on par with what we actually saw in our benchmarking, but the subsequent frame draw times are orders of magnitude faster than what we benchmarked, and since most frames are subsequent frames, they are severely impacting performance. Let’s see if we can figure out why this disparity exists.</p><h5 id="pygame-flamegraph">PyGame Flamegraph</h5><p><img src="images/pygame-flamegraph.svg" /></p><h5 id="raylib-flamegraph">Raylib Flamegraph</h5><p><img src="images/rlib-flamegraph.svg" /></p><p>We see most of our time is being spent in <code>EndDrawing()</code> for Raylib and <code>pygame.display.update()</code> for Pygame. After instrumenting these calls we find the following times per invocation:</p><table><thead><tr><th>Library</th><th>Function</th><th>Average Call Time (ms)</th></tr></thead><tbody><tr><td>PyGame</td><td><code>EndDrawing()</code></td><td>5.677199</td></tr><tr><td>Raylib</td><td><code>pygame.display.update()</code></td><td>2.680623</td></tr></tbody></table><p>Based on our original frame time benchmarks, these calls make up almost all of the time spent rendering subsequent frames.</p><h4 id="what-are-these-functions-doing">What Are These Functions Doing?</h4><p>In the case of Raylib, EndDrawing does a few things:</p><ol type="1"><li>Calls <code>rlDrawRenderBatchActive()</code><ul><li>This clears the batched geometries queue, issuing the OpenGL calls</li></ul></li><li>Calls <code>SwapScreenBuffer()</code><ul><li>This swaps the buffer the display scans out. In effect, this ensures the frame we just drew becomes visible.</li><li>This is done by with <code>glfwSwapBuffers()</code>, but this is beyond scope as it requires an understanding of OpenGL and double buffering.</li><li>In the normal case (which is how our code uses it), this function returns after the instructions have been issued, not once the frame has been rendered.</li></ul></li><li>Optionally waits to hit the target framerate in cases where rendering is happening faster than the target</li></ol><p>Most of the time spent here is on the second step. This is because issuing the instructions to swap will flush the driver’s command stream, and once a few frames are in flight, this will block until the GPU retires one.</p><p>Let’s step through the PyGame <code>update()</code> function too:</p><ol type="1"><li>Calls <code>pg_update()</code> in <code>src_c/display.c</code><ul><li>This performs some basic checks to make sure a display is set</li></ul></li><li><code>pg_update()</code> calls <code>SDL_UpdateWindowSurfaceRects</code><ul><li>This copies the buffer into a buffer owned by the windowing system (X11 in my case)</li></ul></li></ol><p>The main reason this is slower is PyGame copies the whole frame on the CPU for each frame while Raylib’s frame is already in VRAM and the swap doesn’t <a href="https://en.wikipedia.org/wiki/Bit_blit">blit</a>.</p><h2 id="takeaways">Takeaways</h2><p>Out of the box Raylib has better performance because it performs hardware accelerated rendering. In terms of ergonomics, they both have their own quirks. Raylib feels like a C library with Python bindings (because it is!), while PyGame feels inconsistent, mixing both explicit surface drawing, and global state for frame updates.</p><p>Personally, I’m not keen on using PyGame again because I enjoy writing performant software, and the reality of Python is it can’t be performant. This doesn’t mean I won’t ever write Python code again, it’s useful for first passes at a problem, but if I want to productionize that software I’ll have to rewrite it in a sensible programming language. The nice thing about doing a first pass on a project in Raylib is you can then rewrite it in C using Raylib directly, but the same isn’t true for PyGame.</p>]]></description> +<pubDate>Sun, 20 Sep 2026 00:00:00 -0500</pubDate> +<guid>gemini://blog.laack.co/pygame-vs-raylib.gmi</guid> +</item> +<item> <title><![CDATA[Easily Hostable Protocols Over Applications]]></title> <link>gemini://blog.laack.co/easily-hostable-protocols-over-applications.gmi</link> <description><![CDATA[<p>Motivated by Joshua Blais’ blog post about using the internet like it’s 1999 [1] I wanted to discuss an application and a protocol with characteristics that make them bad from a user freedom perspective. I also want to discuss solutions.</p><h2 id="zulip">Zulip</h2><p>Zulip [2] is an instant messaging program that looks like a bastion of freedom. I thought it was because it is free software which ought to be the epitome of user freedom, but it is not that simple. Free software is necessary but not sufficient for appropriate user freedom.</p><p>Try to find a third party Zulip client for GNU/Linux. You will not. This frequently happens when you use applications and not protocols. Let’s consider three alternative protocols that facilitate instant messaging:</p><ol type="1"><li>IRC</li><li>XMPP</li><li>Matrix</li></ol><p>Look for third party clients for any of these and they will abound. These protocols were sensibly designed to give users the freedom to decide how they interact with their data and the data others show them.</p><p>Nothing is stopping you from creating a third-party client for Zulip. The problem is applications aren’t designed with this in mind, but protocols are. The main reason applications generally have so few clients is they frequently change their interfaces in breaking ways. Quality protocols are designed from the ground up to ensure consistent interfaces, often with backwards compatibility in mind.</p><h2 id="at-protocol">AT Protocol</h2><p>The AT Protocol [3] is used by the social network Bluesky. This is a common way people introduce the protocol, and it should give you pause that a protocol is frequently associated with a singular company and social network.</p><p>Choices in the design of the AT Protocol have led to it being too costly for individuals to run full-fledged servers (see [4] for details). This results in most AT Protocol users being entirely dependent on the Bluesky organization [5] (this link is worth following). Having a strong reliance on a VC backed social media company [6] is a good way to become the product when investors demand returns. This also limits freedom by having a centralized authority with the ability to censor speech [7].</p><p>An alternative to the AT Protocol is ActivityPub. Mastodon [8] uses ActivityPub to facilitate microblogging, and the software can be hosted on cheap hardware without a reliance on a third-party. Proponents of the AT Protocol may claim the two perform different functions, and I agree, but the centralized feed functionality the AT Protocol can provide but ActivityPub can’t is something I consider to be deeply problematic from a human psychology perspective. As such, while ActivityPub can’t directly replace “your” BlueSky feed, it will give you a healthier microblogging experience. With that said, I think the case for microblogging is lacking, and individuals should consider if microblogs, both their own and those of others, are worthwhile (my answer is emphatically no).</p><h2 id="proposition">Proposition</h2><p>Host your own services for the dissemination of information, ensuring the services you host implement protocols designed for the type of information you are disseminating.</p><p>I use Git (not GitHub) for software distribution, RSS, Gemini [9], and HTTP for broadcasted textual information, email for bidirectional individual or small group communication, and XMPP or IRC for larger group communication. These are the protocols built for these use cases, and they should be used as such.</p><h2 id="citations">Citations</h2><p>[1] - <a href="https://joshblais.com/blog/using-the-internet-like-its-1999/">https://joshblais.com/blog/using-the-internet-like-its-1999/</a></p><p>[2] - <a href="https://zulip.com">https://zulip.com</a></p><p>[3] - <a href="https://en.wikipedia.org/wiki/AT_Protocol">https://en.wikipedia.org/wiki/AT_Protocol</a></p><p>[4] - <a href="https://dustycloud.org/blog/how-decentralized-is-bluesky/">https://dustycloud.org/blog/how-decentralized-is-bluesky/</a></p><p>[5] - <a href="https://arewedecentralizedyet.online/">https://arewedecentralizedyet.online/</a></p><p>[6] - <a href="https://bsky.social/about/blog/03-19-2026-series-b">https://bsky.social/about/blog/03-19-2026-series-b</a></p><p>[7] - <a href="https://bsky.social/about/support/community-guidelines">https://bsky.social/about/support/community-guidelines</a></p><p>[8] - <a href="https://joinmastodon.org/">https://joinmastodon.org/</a></p><p>[9] - <a href="http://geminiprotocol.net/">http://geminiprotocol.net/</a></p>]]></description> diff --git a/posts/gemini/index.gmi b/posts/gemini/index.gmi @@ -2,6 +2,7 @@ => gemini://blog.laack.co/feed.xml +=> pygame-vs-raylib.gmi pygame-vs-raylib 2026/09/20 => easily-hostable-protocols-over-applications.gmi easily-hostable-protocols-over-applications 2026/04/25 => config-files-suck.gmi config-files-suck 2025/11/19 => you-dont-need-anything.gmi you-dont-need-anything 2025/10/17 diff --git a/posts/gemini/pygame-vs-raylib.gmi b/posts/gemini/pygame-vs-raylib.gmi @@ -0,0 +1,349 @@ +# PyGame vs. Raylib + +## Date: 2026/09/20 + +I implemented Prim's algorithm to create a MST of a graph in Python. I also created a visualization of it, shown below. + +=> https://cp-algorithms.com/graph/mst_prim.html +=> https://blog.laack.co/videos/prim.mkv + +This graph has 250 vertices and 1,000 edges. The source code used to generate this visualization can be found here: + +=> https://git.laack.co/blog/file/python/pygame-vs-raylib/prim.py.html + +Prim's algorithm is worth understanding (albeit out of scope), and the problem it solves is finding the set of edges that minimizes the sum of their weights while guaranteeing there is exactly one path between any two vertices in the connected, weighted, undirected graph. In the case of my implementation, the weight of each edge was its length. + +As it relates to the animation, the following two things should be apparent: + +1. The first frame must draw every edge and vertex of the graph in a greyed-out color. +2. Each subsequent frame only has to draw one additional edge, the newly traversed edge, and one additional vertex, the vertex we are visiting. + +While we could render each frame from scratch based on the graph's state, any reasonable rendering program has the ability to additively draw geometries to avoid this re-computation, and I care a bit about performance (even though this is written in Python*). Since PyGame and Raylib both support this, I'll be using additive rendering in both of my implementations. + +(I did rewrite the animation in C++ using Raylib so I could make it my X11 wallpaper, but that's for another blog post) + +=> https://git.laack.co/abg/ + +## Raylib + +### Implementation + +Raylib has 2D rendered textures that can persist across frames. Here's some Python code that makes use of them to visualize Prim's algorithm: + +```python +import pyray as pr + +# ... (other imports, Vertex class definition, Edge class definition) + +pr.init_window(screen_width, screen_height, "prim") + +# ... (other initialization) + +texture = pr.load_render_texture(screen_width,screen_height) + +while !done: + if first: + start = time.monotonic_ns() + + # After calling begin_texture_mode(texture) all writes will be + # sent to the texture without having to specify we're writing to the + # texture. This is also how begin_drawing() works, but for frames. + + pr.begin_texture_mode(texture) + pr.clear_background(pr.BLACK) + + for edge in edge_list: + edge.draw_edge(pr.DARKGRAY) + for vertex in graph: + vertex.draw_vertex(pr.DARKGRAY) + + pr.end_texture_mode() + + source_rec = pr.Rectangle(0, 0, screen_width, screen_height) + dest_rec = pr.Rectangle(0, 0, screen_width, screen_height) + + pr.begin_drawing() + pr.draw_texture_pro(texture.texture, source_rec, dest_rec, pr.Vector2(0, 0), 0, pr.WHITE) + pr.end_drawing() + + first = False + + end = time.monotonic_ns() + first_times.append(end - start) + + continue + + # ... (perform one step of Prim's algorithm) + + if len(to_draw_edge) != 0 or len(to_draw_vert) != 0: + start = time.monotonic_ns() + + pr.begin_texture_mode(texture) + + for edge in to_draw_edge: + edge.draw_edge(pr.WHITE) + for vert in to_draw_vert: + vert.draw_vertex(pr.WHITE) + + pr.end_texture_mode() + + source_rec = pr.Rectangle(0, 0, screen_width, screen_height) + dest_rec = pr.Rectangle(0, 0, screen_width, screen_height) + + pr.begin_drawing() + pr.draw_texture_pro(texture.texture, source_rec, dest_rec, pr.Vector2(0, 0), 0, pr.WHITE) + pr.end_drawing() + + end = time.monotonic_ns() + redraw_times.append(end - start) + + to_draw_vert = [] + to_draw_edge = [] +``` + +Before our main iteration loop we initialize our texture. Then on our first iteration of the loop we draw each of the edges and vertices in our graph. On each subsequent iteration we only draw vertices added to `to_draw_vert` and edges added to `to_draw_edge`. Both lists are populated with edges and vertices that were visited since the last frame was rendered. + +This code is also instrumented to track the amount of time the first frame takes to render, and the amount of time each subsequent frame takes to render as well. + +Not included above are our Vertex and Edge classes which both implement draw functions. These functions have the following lines to draw geometries with Raylib: + +```python +pr.draw_circle(int(self.x),int(self.y), RADIUS, c) # vertex +pr.draw_line(int(self.v1.x), int(self.v1.y), int(self.v2.x), int(self.v2.y), c) # edge +``` + +Per the code comment in the larger code snippet, Raylib uses global state to track which canvas is being drawn to, so these functions can be called in texture mode or drawing mode with a similar effect. + +## PyGame + +### Implementation + +PyGame persists frame state across frames by default so we don't have to mess with rendered textures like we did with Raylib! Here's a some code that does the PyGame rendering: + +```python + +# ... (imports and such) + +pygame.init() +display = pygame.display.set_mode((screen_width,screen_height)) + +# ... (other initialization) + +while !done: + if first: + start = time.monotonic_ns() + + display.fill(BLACK) + + for edge in edge_list: + edge.draw_edge(display, LIGHT_GREY) + for vertex in graph: + vertex.draw_vertex(display, LIGHT_GREY) + + pygame.display.update() + + end = time.monotonic_ns() + first_time.append(end - start) + + first = False + continue + + # ... (perform one step of Prim's algorithm) + + start = time.monotonic_ns() + + for edge in to_draw_edge: + edge.draw_edge(display, white) + for vert in to_draw_vert: + vert.draw_vertex(display, white) + + pygame.display.update() + end = time.monotonic_ns() + + to_draw_vert = [] + to_draw_edge = [] +``` + +I find this code to be more readable than the Raylib code because we don't have to maintain a standalone texture, and I also like how writing to a display is more explicit in PyGame: + +```python +pygame.draw.circle(display, WHITE, (self.x,self.y), RADIUS) +pygame.draw.line(display, WHITE, (self.v1.x,self.v1.y), (self.v2.x,self.v2.y), LINE_WIDTH) +``` + +(notice the first parameter is the surface to write to) + +Despite this, the final `pygame.display.update()` is still using global state, which feels a bit strange given we have to specify which surface we are drawing to. + +## Benchmarking + +The benchmarks were executed under the following conditions: + +- Vertex count: 2,500 +- Edge count: 25,000 +- Screen dimensions: 5120x1440 +- CPU: 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz (4 cores, 8 threads) +- iGPU: Intel Corporation TigerLake-LP GT2 \[Iris Xe Graphics\] +- OS: Arch Linux + +Additionally, the metrics are all **averages** across 10 full runs. + +| Library | First frame time (ms) | Incremental frame time (ms) | +| ------- | -------------------------- | --------------------------- | +| Raylib | 29.87 ± 0.74 | 2.88 ± 1.11 | +| PyGame | 323.39 ± 44.60 | 5.59 ± 0.65 | + + +In this benchmark Raylib's average incremental frame render time was ~2x faster than PyGame's, and its first frame render time was ~11x faster. + +### Why Is PyGame So Slow? + +Let's instrument our code to dig deeper: + +```python +if first: + start = time.monotonic_ns() + display.fill(BLACK) + + edge_times = [] # new + vertex_times = [] # new + + for edge in edge_list: + se = time.monotonic_ns() # new + edge.draw_edge(display, LIGHT_GREY) + ee = time.monotonic_ns() # new + edge_times.append(ee - se) # new + + for vertex in graph: + sv = time.monotonic_ns() # new + vertex.draw_vertex(display, LIGHT_GREY) + ev = time.monotonic_ns() # new + vertex_times.append(ev - sv) # new + + pygame.display.update() + end = time.monotonic_ns() + first_time.append(end - start) + + first = False + + print("Edge time avg: " + str(sum(edge_times) / len(edge_times))) # new + print("Vertex time avg: " + str(sum(vertex_times) / len(vertex_times))) # new + + continue +``` + +(Notice the addition of timing for individual edge and vertex draw times for the first frame) + +Let's also update our Raylib code to do the same: + +```python +if first: + start = time.monotonic_ns() + pr.begin_texture_mode(texture) + pr.clear_background(pr.BLACK) + + edge_times = [] # new + vertex_times = [] # new + + for edge in edge_list: + es = time.monotonic_ns() # new + edge.draw_edge(pr.DARKGRAY) + ee = time.monotonic_ns() # new + edge_times.append(ee - es) # new + for vertex in graph: + vs = time.monotonic_ns() # new + vertex.draw_vertex(pr.DARKGRAY) + ve = time.monotonic_ns() # new + vertex_times.append(ve - vs) # new + + pr.end_texture_mode() + + source_rec = pr.Rectangle(0, 0, screen_width, screen_height) + dest_rec = pr.Rectangle(0, 0, screen_width, screen_height) + + pr.begin_drawing() + pr.draw_texture_pro(texture.texture, source_rec, dest_rec, pr.Vector2(0, 0), 0, pr.WHITE) + pr.end_drawing() + + end = time.monotonic_ns() + first_time.append(end - start) + + first = False + + print("Edge time avg: " + str(sum(edge_times) / len(edge_times))) # new + print("Vertex time avg: " + str(sum(vertex_times) / len(vertex_times))) # new + + continue +``` + +Running this updated code once we find: + +| Library | Avg. Edge Draw Time (ns) | Avg. Vertex Draw Time (ns)| +| ------- | ------------------------ | ------------------------- | +| PyGame | 9504.15048 | 686.6508 | +| Raylib | 944.15884 | 3016.1852 | + +PyGame is faster at drawing vertices (circles), but slower at drawing edges (lines). Since we are drawing many more edges than we are vertices, this contributes to making PyGame slower. + +PyGame is slower at drawing lines because it uses SDL which computes lines pixel by pixel on the CPU\*, while Raylib appends the line ends to a queue for batch processing, to be asynchronously processed by the GPU. + +In the case of vertices, Raylib calls `DrawCircleSector()`, and this in turn appends geometries to the GPU drawing queue, but each circle is made of many discrete geometries which are each appended to the queue, costing cycles. Contrasting this with the PyGame approach where PyGame only has to draw a few pixels onto the surface. + +(There are ways to change the rendering pipeline for PyGame to make better use of GPUs, but these approaches are either complex or experimental) + +#### Is that why PyGame is slower? + +That's not the fully story. Let's consider what the numbers above mean. The first frame renders 2,500 vertices, 25,000 edges. Each subsequent frame renders 1 vertex and 1 edge. If we multiply these numbers with the values we calculated for the amount of time each draw takes, we get the following expected frame times: + +| Library | Expected First Frame Draw Time (ms)| Expected Subsequent Frame Draw Time (ms) | +| ------- | ---------------------------------- | ---------------------------------------- | +| PyGame | 239.3204 | 0.0101908 | +| Raylib | 31.14443 | 0.003960344 | + +Based on this, we see the first frame times are on par with what we actually saw in our benchmarking, but the subsequent frame draw times are orders of magnitude faster than what we benchmarked, and since most frames are subsequent frames, they are severely impacting performance. Let's see if we can figure out why this disparity exists. + +##### PyGame Flamegraph + +=> https://blog.laack.co/images/pygame-flamegraph.svg + +##### Raylib Flamegraph + +=> https://blog.laack.co/images/rlib-flamegraph.svg + +We see most of our time is being spent in `EndDrawing()` for Raylib and `pygame.display.update()` for Pygame. After instrumenting these calls we find the following times per invocation: + +| Library | Function | Average Call Time (ms)| +| ------- | ------------------------- | --------------------- | +| PyGame | `EndDrawing()` | 5.677199 | +| Raylib | `pygame.display.update()` | 2.680623 | + +Based on our original frame time benchmarks, these calls make up almost all of the time spent rendering subsequent frames. + +#### What Are These Functions Doing? + +In the case of Raylib, EndDrawing does a few things: + +1. Calls `rlDrawRenderBatchActive()` + - This clears the batched geometries queue, issuing the OpenGL calls +2. Calls `SwapScreenBuffer()` + - This swaps the buffer the display scans out. In effect, this ensures the frame we just drew becomes visible. + - This is done by with `glfwSwapBuffers()`, but this is beyond scope as it requires an understanding of OpenGL and double buffering. + - In the normal case (which is how our code uses it), this function returns after the instructions have been issued, not once the frame has been rendered. +3. Optionally waits to hit the target framerate in cases where rendering is happening faster than the target + +Most of the time spent here is on the second step. This is because issuing the instructions to swap will flush the driver's command stream, and once a few frames are in flight, this will block until the GPU retires one. + +Let's step through the PyGame `update()` function too: + +1. Calls `pg_update()` in `src_c/display.c` + - This performs some basic checks to make sure a display is set +2. `pg_update()` calls `SDL_UpdateWindowSurfaceRects` + - This copies the buffer into a buffer owned by the windowing system (X11 in my case) + +The main reason this is slower is PyGame copies the whole frame on the CPU for each frame while Raylib's frame is already in VRAM and the swap doesn't [blit](https://en.wikipedia.org/wiki/Bit_blit). + +## Takeaways + +Out of the box Raylib has better performance because it performs hardware accelerated rendering. In terms of ergonomics, they both have their own quirks. Raylib feels like a C library with Python bindings (because it is!), while PyGame feels inconsistent, mixing both explicit surface drawing, and global state for frame updates. + +Personally, I'm not keen on using PyGame again because I enjoy writing performant software, and the reality of Python is it can't be performant. This doesn't mean I won't ever write Python code again, it's useful for first passes at a problem, but if I want to productionize that software I'll have to rewrite it in a sensible programming language. The nice thing about doing a first pass on a project in Raylib is you can then rewrite it in C using Raylib directly, but the same isn't true for PyGame. diff --git a/posts/notes/abg.md b/posts/notes/abg.md @@ -1,3 +1,7 @@ +# Notes + +Originally, I was going to post something called "to make a cool background", but realized the pygame / raylib findings were more interesting. I'll probably add some of this information into a subsequent post. + # abg this is associated with the preliminary post titled: "to make a cool background" diff --git a/posts/site/feed.xml b/posts/site/feed.xml @@ -7,9 +7,16 @@ <language>en-us</language> <managingEditor>andrew@laack.co</managingEditor> <webMaster>andrew@laack.co</webMaster> -<lastBuildDate>Fri, 18 Sep 2026 15:09:46 -0500</lastBuildDate> +<lastBuildDate>Sun, 20 Sep 2026 21:40:38 -0500</lastBuildDate> <atom:link href="https://blog.laack.co/feed.xml" rel="self" type="application/rss+xml"/> <item> +<title><![CDATA[PyGame vs. Raylib]]></title> +<link>https://blog.laack.co/pygame-vs-raylib.html</link> +<description><![CDATA[<p>I implemented <a href="https://cp-algorithms.com/graph/mst_prim.html">Prim’s algorithm</a> to create a MST of a graph in Python. I also created a visualization of it, shown below.</p><p><video src="videos/prim.mkv" controls=""><a href="videos/prim.mkv">Video</a></video></p><p>(This graph has 250 vertices and 1,000 edges. The source code used to generate this visualization can be found <a href="https://git.laack.co/blog/file/python/pygame-vs-raylib/prim.py.html">here</a>)</p><p>Prim’s algorithm is worth understanding (albeit out of scope), and the problem it solves is finding the set of edges that minimizes the sum of their weights while guaranteeing there is exactly one path between any two vertices in the connected, weighted, undirected graph. In the case of my implementation, the weight of each edge was its length.</p><p>As it relates to the animation, the following two things should be apparent:</p><ol type="1"><li>The first frame must draw every edge and vertex of the graph in a greyed-out color.</li><li>Each subsequent frame only has to draw one additional edge, the newly traversed edge, and one additional vertex, the vertex we are visiting.</li></ol><p>While we could render each frame from scratch based on the graph’s state, any reasonable rendering program has the ability to additively draw geometries to avoid this re-computation, and I care a bit about performance (even though this is written in Python*). Since PyGame and Raylib both support this, I’ll be using additive rendering in both of my implementations.</p><p>* I did rewrite the animation in C++ using Raylib so I could make it <a href="https://git.laack.co/abg/">my X11 wallpaper</a>, but that’s for another blog post.</p><h2 id="raylib">Raylib</h2><h3 id="implementation">Implementation</h3><p>Raylib has 2D rendered textures that can persist across frames. Here’s some Python code that makes use of them to visualize Prim’s algorithm:</p><div class="sourceCode" id="cb1"><pre class="sourceCode python"><code class="sourceCode python"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="im">import</span> pyray <span class="im">as</span> pr</span><span id="cb1-2"><a href="#cb1-2" aria-hidden="true" tabindex="-1"></a></span><span id="cb1-3"><a href="#cb1-3" aria-hidden="true" tabindex="-1"></a></span><span id="cb1-4"><a href="#cb1-4" aria-hidden="true" tabindex="-1"></a>pr.init_window(screen_width, screen_height, <span class="st">&quot;prim&quot;</span>)</span><span id="cb1-5"><a href="#cb1-5" aria-hidden="true" tabindex="-1"></a></span><span id="cb1-6"><a href="#cb1-6" aria-hidden="true" tabindex="-1"></a></span><span id="cb1-7"><a href="#cb1-7" aria-hidden="true" tabindex="-1"></a>texture <span class="op">=</span> pr.load_render_texture(screen_width,screen_height)</span><span id="cb1-8"><a href="#cb1-8" aria-hidden="true" tabindex="-1"></a></span><span id="cb1-9"><a href="#cb1-9" aria-hidden="true" tabindex="-1"></a><span class="cf">while</span><span class="op">!</span>done:</span><span id="cb1-10"><a href="#cb1-10" aria-hidden="true" tabindex="-1"></a><span class="cf">if</span> first:</span><span id="cb1-11"><a href="#cb1-11" aria-hidden="true" tabindex="-1"></a> start <span class="op">=</span> time.monotonic_ns()</span><span id="cb1-12"><a href="#cb1-12" aria-hidden="true" tabindex="-1"></a></span><span id="cb1-13"><a href="#cb1-13" aria-hidden="true" tabindex="-1"></a><span class="co"># After calling begin_texture_mode(texture) all writes will be </span></span><span id="cb1-14"><a href="#cb1-14" aria-hidden="true" tabindex="-1"></a><span class="co"># sent to the texture without having to specify we&#39;re writing to the </span></span><span id="cb1-15"><a href="#cb1-15" aria-hidden="true" tabindex="-1"></a><span class="co"># texture. This is also how begin_drawing() works, but for frames.</span></span><span id="cb1-16"><a href="#cb1-16" aria-hidden="true" tabindex="-1"></a></span><span id="cb1-17"><a href="#cb1-17" aria-hidden="true" tabindex="-1"></a> pr.begin_texture_mode(texture)</span><span id="cb1-18"><a href="#cb1-18" aria-hidden="true" tabindex="-1"></a> pr.clear_background(pr.BLACK)</span><span id="cb1-19"><a href="#cb1-19" aria-hidden="true" tabindex="-1"></a></span><span id="cb1-20"><a href="#cb1-20" aria-hidden="true" tabindex="-1"></a><span class="cf">for</span> edge <span class="kw">in</span> edge_list:</span><span id="cb1-21"><a href="#cb1-21" aria-hidden="true" tabindex="-1"></a> edge.draw_edge(pr.DARKGRAY)</span><span id="cb1-22"><a href="#cb1-22" aria-hidden="true" tabindex="-1"></a><span class="cf">for</span> vertex <span class="kw">in</span> graph:</span><span id="cb1-23"><a href="#cb1-23" aria-hidden="true" tabindex="-1"></a> vertex.draw_vertex(pr.DARKGRAY)</span><span id="cb1-24"><a href="#cb1-24" aria-hidden="true" tabindex="-1"></a></span><span id="cb1-25"><a href="#cb1-25" aria-hidden="true" tabindex="-1"></a> pr.end_texture_mode()</span><span id="cb1-26"><a href="#cb1-26" aria-hidden="true" tabindex="-1"></a></span><span id="cb1-27"><a href="#cb1-27" aria-hidden="true" tabindex="-1"></a> source_rec <span class="op">=</span> pr.Rectangle(<span class="dv">0</span>, <span class="dv">0</span>, screen_width, screen_height)</span><span id="cb1-28"><a href="#cb1-28" aria-hidden="true" tabindex="-1"></a> dest_rec <span class="op">=</span> pr.Rectangle(<span class="dv">0</span>, <span class="dv">0</span>, screen_width, screen_height)</span><span id="cb1-29"><a href="#cb1-29" aria-hidden="true" tabindex="-1"></a></span><span id="cb1-30"><a href="#cb1-30" aria-hidden="true" tabindex="-1"></a> pr.begin_drawing()</span><span id="cb1-31"><a href="#cb1-31" aria-hidden="true" tabindex="-1"></a> pr.draw_texture_pro(texture.texture, source_rec, dest_rec, pr.Vector2(<span class="dv">0</span>, <span class="dv">0</span>), <span class="dv">0</span>, pr.WHITE)</span><span id="cb1-32"><a href="#cb1-32" aria-hidden="true" tabindex="-1"></a> pr.end_drawing()</span><span id="cb1-33"><a href="#cb1-33" aria-hidden="true" tabindex="-1"></a></span><span id="cb1-34"><a href="#cb1-34" aria-hidden="true" tabindex="-1"></a> first <span class="op">=</span><span class="va">False</span></span><span id="cb1-35"><a href="#cb1-35" aria-hidden="true" tabindex="-1"></a></span><span id="cb1-36"><a href="#cb1-36" aria-hidden="true" tabindex="-1"></a> end <span class="op">=</span> time.monotonic_ns()</span><span id="cb1-37"><a href="#cb1-37" aria-hidden="true" tabindex="-1"></a> first_times.append(end <span class="op">-</span> start)</span><span id="cb1-38"><a href="#cb1-38" aria-hidden="true" tabindex="-1"></a></span><span id="cb1-39"><a href="#cb1-39" aria-hidden="true" tabindex="-1"></a><span class="cf">continue</span></span><span id="cb1-40"><a href="#cb1-40" aria-hidden="true" tabindex="-1"></a></span><span id="cb1-41"><a href="#cb1-41" aria-hidden="true" tabindex="-1"></a><span class="co"># ... (perform one step of Prim&#39;s algorithm)</span></span><span id="cb1-42"><a href="#cb1-42" aria-hidden="true" tabindex="-1"></a></span><span id="cb1-43"><a href="#cb1-43" aria-hidden="true" tabindex="-1"></a><span class="cf">if</span><span class="bu">len</span>(to_draw_edge) <span class="op">!=</span><span class="dv">0</span><span class="kw">or</span><span class="bu">len</span>(to_draw_vert) <span class="op">!=</span><span class="dv">0</span>:</span><span id="cb1-44"><a href="#cb1-44" aria-hidden="true" tabindex="-1"></a> start <span class="op">=</span> time.monotonic_ns()</span><span id="cb1-45"><a href="#cb1-45" aria-hidden="true" tabindex="-1"></a></span><span id="cb1-46"><a href="#cb1-46" aria-hidden="true" tabindex="-1"></a> pr.begin_texture_mode(texture)</span><span id="cb1-47"><a href="#cb1-47" aria-hidden="true" tabindex="-1"></a></span><span id="cb1-48"><a href="#cb1-48" aria-hidden="true" tabindex="-1"></a><span class="cf">for</span> edge <span class="kw">in</span> to_draw_edge:</span><span id="cb1-49"><a href="#cb1-49" aria-hidden="true" tabindex="-1"></a> edge.draw_edge(pr.WHITE)</span><span id="cb1-50"><a href="#cb1-50" aria-hidden="true" tabindex="-1"></a><span class="cf">for</span> vert <span class="kw">in</span> to_draw_vert:</span><span id="cb1-51"><a href="#cb1-51" aria-hidden="true" tabindex="-1"></a> vert.draw_vertex(pr.WHITE)</span><span id="cb1-52"><a href="#cb1-52" aria-hidden="true" tabindex="-1"></a></span><span id="cb1-53"><a href="#cb1-53" aria-hidden="true" tabindex="-1"></a> pr.end_texture_mode()</span><span id="cb1-54"><a href="#cb1-54" aria-hidden="true" tabindex="-1"></a></span><span id="cb1-55"><a href="#cb1-55" aria-hidden="true" tabindex="-1"></a> source_rec <span class="op">=</span> pr.Rectangle(<span class="dv">0</span>, <span class="dv">0</span>, screen_width, screen_height)</span><span id="cb1-56"><a href="#cb1-56" aria-hidden="true" tabindex="-1"></a> dest_rec <span class="op">=</span> pr.Rectangle(<span class="dv">0</span>, <span class="dv">0</span>, screen_width, screen_height)</span><span id="cb1-57"><a href="#cb1-57" aria-hidden="true" tabindex="-1"></a></span><span id="cb1-58"><a href="#cb1-58" aria-hidden="true" tabindex="-1"></a> pr.begin_drawing()</span><span id="cb1-59"><a href="#cb1-59" aria-hidden="true" tabindex="-1"></a> pr.draw_texture_pro(texture.texture, source_rec, dest_rec, pr.Vector2(<span class="dv">0</span>, <span class="dv">0</span>), <span class="dv">0</span>, pr.WHITE)</span><span id="cb1-60"><a href="#cb1-60" aria-hidden="true" tabindex="-1"></a> pr.end_drawing()</span><span id="cb1-61"><a href="#cb1-61" aria-hidden="true" tabindex="-1"></a></span><span id="cb1-62"><a href="#cb1-62" aria-hidden="true" tabindex="-1"></a> end <span class="op">=</span> time.monotonic_ns()</span><span id="cb1-63"><a href="#cb1-63" aria-hidden="true" tabindex="-1"></a> redraw_times.append(end <span class="op">-</span> start)</span><span id="cb1-64"><a href="#cb1-64" aria-hidden="true" tabindex="-1"></a></span><span id="cb1-65"><a href="#cb1-65" aria-hidden="true" tabindex="-1"></a> to_draw_vert <span class="op">=</span> []</span><span id="cb1-66"><a href="#cb1-66" aria-hidden="true" tabindex="-1"></a> to_draw_edge <span class="op">=</span> []</span></code></pre></div><p>Before our main iteration loop we initialize our texture. Then on our first iteration of the loop we draw each of the edges and vertices in our graph. On each subsequent iteration we only draw vertices added to <code>to_draw_vert</code> and edges added to <code>to_draw_edge</code>. Both lists are populated with edges and vertices that were visited since the last frame was rendered.</p><p>This code is also instrumented to track the amount of time the first frame takes to render, and the amount of time each subsequent frame takes to render as well.</p><p>Not included above are our Vertex and Edge classes which both implement draw functions. These functions have the following lines to draw geometries with Raylib:</p><div class="sourceCode" id="cb2"><pre class="sourceCode python"><code class="sourceCode python"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a>pr.draw_circle(<span class="bu">int</span>(<span class="va">self</span>.x),<span class="bu">int</span>(<span class="va">self</span>.y), RADIUS, c) <span class="co"># vertex</span></span><span id="cb2-2"><a href="#cb2-2" aria-hidden="true" tabindex="-1"></a>pr.draw_line(<span class="bu">int</span>(<span class="va">self</span>.v1.x), <span class="bu">int</span>(<span class="va">self</span>.v1.y), <span class="bu">int</span>(<span class="va">self</span>.v2.x), <span class="bu">int</span>(<span class="va">self</span>.v2.y), c) <span class="co"># edge</span></span></code></pre></div><p>Per the code comment in the larger code snippet, Raylib uses global state to track which canvas is being drawn to, so these functions can be called in texture mode or drawing mode with a similar effect.</p><h2 id="pygame">PyGame</h2><h3 id="implementation-1">Implementation</h3><p>PyGame persists frame state across frames by default so we don’t have to mess with rendered textures like we did with Raylib! Here’s a some code that does the PyGame rendering:</p><div class="sourceCode" id="cb3"><pre class="sourceCode python"><code class="sourceCode python"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a></span><span id="cb3-2"><a href="#cb3-2" aria-hidden="true" tabindex="-1"></a></span><span id="cb3-3"><a href="#cb3-3" aria-hidden="true" tabindex="-1"></a>pygame.init()</span><span id="cb3-4"><a href="#cb3-4" aria-hidden="true" tabindex="-1"></a>display <span class="op">=</span> pygame.display.set_mode((screen_width,screen_height))</span><span id="cb3-5"><a href="#cb3-5" aria-hidden="true" tabindex="-1"></a></span><span id="cb3-6"><a href="#cb3-6" aria-hidden="true" tabindex="-1"></a></span><span id="cb3-7"><a href="#cb3-7" aria-hidden="true" tabindex="-1"></a><span class="cf">while</span><span class="op">!</span>done:</span><span id="cb3-8"><a href="#cb3-8" aria-hidden="true" tabindex="-1"></a><span class="cf">if</span> first:</span><span id="cb3-9"><a href="#cb3-9" aria-hidden="true" tabindex="-1"></a> start <span class="op">=</span> time.monotonic_ns()</span><span id="cb3-10"><a href="#cb3-10" aria-hidden="true" tabindex="-1"></a></span><span id="cb3-11"><a href="#cb3-11" aria-hidden="true" tabindex="-1"></a> display.fill(BLACK)</span><span id="cb3-12"><a href="#cb3-12" aria-hidden="true" tabindex="-1"></a></span><span id="cb3-13"><a href="#cb3-13" aria-hidden="true" tabindex="-1"></a><span class="cf">for</span> edge <span class="kw">in</span> edge_list:</span><span id="cb3-14"><a href="#cb3-14" aria-hidden="true" tabindex="-1"></a> edge.draw_edge(display, LIGHT_GREY)</span><span id="cb3-15"><a href="#cb3-15" aria-hidden="true" tabindex="-1"></a><span class="cf">for</span> vertex <span class="kw">in</span> graph:</span><span id="cb3-16"><a href="#cb3-16" aria-hidden="true" tabindex="-1"></a> vertex.draw_vertex(display, LIGHT_GREY)</span><span id="cb3-17"><a href="#cb3-17" aria-hidden="true" tabindex="-1"></a></span><span id="cb3-18"><a href="#cb3-18" aria-hidden="true" tabindex="-1"></a> pygame.display.update()</span><span id="cb3-19"><a href="#cb3-19" aria-hidden="true" tabindex="-1"></a></span><span id="cb3-20"><a href="#cb3-20" aria-hidden="true" tabindex="-1"></a> end <span class="op">=</span> time.monotonic_ns()</span><span id="cb3-21"><a href="#cb3-21" aria-hidden="true" tabindex="-1"></a> first_time.append(end <span class="op">-</span> start)</span><span id="cb3-22"><a href="#cb3-22" aria-hidden="true" tabindex="-1"></a></span><span id="cb3-23"><a href="#cb3-23" aria-hidden="true" tabindex="-1"></a> first <span class="op">=</span><span class="va">False</span></span><span id="cb3-24"><a href="#cb3-24" aria-hidden="true" tabindex="-1"></a><span class="cf">continue</span></span><span id="cb3-25"><a href="#cb3-25" aria-hidden="true" tabindex="-1"></a></span><span id="cb3-26"><a href="#cb3-26" aria-hidden="true" tabindex="-1"></a><span class="co"># ... (perform one step of Prim&#39;s algorithm)</span></span><span id="cb3-27"><a href="#cb3-27" aria-hidden="true" tabindex="-1"></a></span><span id="cb3-28"><a href="#cb3-28" aria-hidden="true" tabindex="-1"></a> start <span class="op">=</span> time.monotonic_ns()</span><span id="cb3-29"><a href="#cb3-29" aria-hidden="true" tabindex="-1"></a></span><span id="cb3-30"><a href="#cb3-30" aria-hidden="true" tabindex="-1"></a><span class="cf">for</span> edge <span class="kw">in</span> to_draw_edge:</span><span id="cb3-31"><a href="#cb3-31" aria-hidden="true" tabindex="-1"></a> edge.draw_edge(display, white)</span><span id="cb3-32"><a href="#cb3-32" aria-hidden="true" tabindex="-1"></a><span class="cf">for</span> vert <span class="kw">in</span> to_draw_vert:</span><span id="cb3-33"><a href="#cb3-33" aria-hidden="true" tabindex="-1"></a> vert.draw_vertex(display, white)</span><span id="cb3-34"><a href="#cb3-34" aria-hidden="true" tabindex="-1"></a></span><span id="cb3-35"><a href="#cb3-35" aria-hidden="true" tabindex="-1"></a> pygame.display.update()</span><span id="cb3-36"><a href="#cb3-36" aria-hidden="true" tabindex="-1"></a> end <span class="op">=</span> time.monotonic_ns()</span><span id="cb3-37"><a href="#cb3-37" aria-hidden="true" tabindex="-1"></a></span><span id="cb3-38"><a href="#cb3-38" aria-hidden="true" tabindex="-1"></a> to_draw_vert <span class="op">=</span> []</span><span id="cb3-39"><a href="#cb3-39" aria-hidden="true" tabindex="-1"></a> to_draw_edge <span class="op">=</span> []</span></code></pre></div><p>I find this code to be more readable than the Raylib code because we don’t have to maintain a standalone texture, and I also like how writing to a display is more explicit in PyGame:</p><div class="sourceCode" id="cb4"><pre class="sourceCode python"><code class="sourceCode python"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a>pygame.draw.circle(display, WHITE, (<span class="va">self</span>.x,<span class="va">self</span>.y), RADIUS)</span><span id="cb4-2"><a href="#cb4-2" aria-hidden="true" tabindex="-1"></a>pygame.draw.line(display, WHITE, (<span class="va">self</span>.v1.x,<span class="va">self</span>.v1.y), (<span class="va">self</span>.v2.x,<span class="va">self</span>.v2.y), LINE_WIDTH)</span></code></pre></div><p>(notice the first parameter is the surface to write to)</p><p>Despite this, the final <code>pygame.display.update()</code> is still using global state, which feels a bit strange given we have to specify which surface we are drawing to.</p><h2 id="benchmarking">Benchmarking</h2><p>The benchmarks were executed under the following conditions:</p><ul><li>Vertex count: 2,500</li><li>Edge count: 25,000</li><li>Screen dimensions: 5120x1440</li><li>CPU: 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz (4 cores, 8 threads)</li><li>iGPU: Intel Corporation TigerLake-LP GT2 [Iris Xe Graphics]</li><li>OS: Arch Linux</li></ul><p>Additionally, the metrics are all <strong>averages</strong> across 10 full runs.</p><table><thead><tr><th>Library</th><th>First frame time (ms)</th><th>Incremental frame time (ms)</th></tr></thead><tbody><tr><td>Raylib</td><td>29.87 ± 0.74</td><td>2.88 ± 1.11</td></tr><tr><td>PyGame</td><td>323.39 ± 44.60</td><td>5.59 ± 0.65</td></tr></tbody></table><p>In this benchmark Raylib’s average incremental frame render time was ~2x faster than PyGame’s, and its first frame render time was ~11x faster.</p><h3 id="why-is-pygame-so-slow">Why Is PyGame So Slow?</h3><p>Let’s instrument our code to dig deeper:</p><div class="sourceCode" id="cb5"><pre class="sourceCode python"><code class="sourceCode python"><span id="cb5-1"><a href="#cb5-1" aria-hidden="true" tabindex="-1"></a><span class="cf">if</span> first:</span><span id="cb5-2"><a href="#cb5-2" aria-hidden="true" tabindex="-1"></a> start <span class="op">=</span> time.monotonic_ns()</span><span id="cb5-3"><a href="#cb5-3" aria-hidden="true" tabindex="-1"></a> display.fill(BLACK)</span><span id="cb5-4"><a href="#cb5-4" aria-hidden="true" tabindex="-1"></a></span><span id="cb5-5"><a href="#cb5-5" aria-hidden="true" tabindex="-1"></a> edge_times <span class="op">=</span> [] <span class="co"># new</span></span><span id="cb5-6"><a href="#cb5-6" aria-hidden="true" tabindex="-1"></a> vertex_times <span class="op">=</span> [] <span class="co"># new</span></span><span id="cb5-7"><a href="#cb5-7" aria-hidden="true" tabindex="-1"></a></span><span id="cb5-8"><a href="#cb5-8" aria-hidden="true" tabindex="-1"></a><span class="cf">for</span> edge <span class="kw">in</span> edge_list:</span><span id="cb5-9"><a href="#cb5-9" aria-hidden="true" tabindex="-1"></a> se <span class="op">=</span> time.monotonic_ns() <span class="co"># new</span></span><span id="cb5-10"><a href="#cb5-10" aria-hidden="true" tabindex="-1"></a> edge.draw_edge(display, LIGHT_GREY)</span><span id="cb5-11"><a href="#cb5-11" aria-hidden="true" tabindex="-1"></a> ee <span class="op">=</span> time.monotonic_ns() <span class="co"># new</span></span><span id="cb5-12"><a href="#cb5-12" aria-hidden="true" tabindex="-1"></a> edge_times.append(ee <span class="op">-</span> se) <span class="co"># new</span></span><span id="cb5-13"><a href="#cb5-13" aria-hidden="true" tabindex="-1"></a></span><span id="cb5-14"><a href="#cb5-14" aria-hidden="true" tabindex="-1"></a><span class="cf">for</span> vertex <span class="kw">in</span> graph:</span><span id="cb5-15"><a href="#cb5-15" aria-hidden="true" tabindex="-1"></a> sv <span class="op">=</span> time.monotonic_ns() <span class="co"># new</span></span><span id="cb5-16"><a href="#cb5-16" aria-hidden="true" tabindex="-1"></a> vertex.draw_vertex(display, LIGHT_GREY)</span><span id="cb5-17"><a href="#cb5-17" aria-hidden="true" tabindex="-1"></a> ev <span class="op">=</span> time.monotonic_ns() <span class="co"># new</span></span><span id="cb5-18"><a href="#cb5-18" aria-hidden="true" tabindex="-1"></a> vertex_times.append(ev <span class="op">-</span> sv) <span class="co"># new</span></span><span id="cb5-19"><a href="#cb5-19" aria-hidden="true" tabindex="-1"></a></span><span id="cb5-20"><a href="#cb5-20" aria-hidden="true" tabindex="-1"></a> pygame.display.update()</span><span id="cb5-21"><a href="#cb5-21" aria-hidden="true" tabindex="-1"></a> end <span class="op">=</span> time.monotonic_ns()</span><span id="cb5-22"><a href="#cb5-22" aria-hidden="true" tabindex="-1"></a> first_time.append(end <span class="op">-</span> start)</span><span id="cb5-23"><a href="#cb5-23" aria-hidden="true" tabindex="-1"></a></span><span id="cb5-24"><a href="#cb5-24" aria-hidden="true" tabindex="-1"></a> first <span class="op">=</span><span class="va">False</span></span><span id="cb5-25"><a href="#cb5-25" aria-hidden="true" tabindex="-1"></a></span><span id="cb5-26"><a href="#cb5-26" aria-hidden="true" tabindex="-1"></a><span class="bu">print</span>(<span class="st">&quot;Edge time avg: &quot;</span><span class="op">+</span><span class="bu">str</span>(<span class="bu">sum</span>(edge_times) <span class="op">/</span><span class="bu">len</span>(edge_times))) <span class="co"># new </span></span><span id="cb5-27"><a href="#cb5-27" aria-hidden="true" tabindex="-1"></a><span class="bu">print</span>(<span class="st">&quot;Vertex time avg: &quot;</span><span class="op">+</span><span class="bu">str</span>(<span class="bu">sum</span>(vertex_times) <span class="op">/</span><span class="bu">len</span>(vertex_times))) <span class="co"># new</span></span><span id="cb5-28"><a href="#cb5-28" aria-hidden="true" tabindex="-1"></a></span><span id="cb5-29"><a href="#cb5-29" aria-hidden="true" tabindex="-1"></a><span class="cf">continue</span></span></code></pre></div><p>(Notice the addition of timing for individual edge and vertex draw times for the first frame)</p><p>Let’s also update our Raylib code to do the same:</p><div class="sourceCode" id="cb6"><pre class="sourceCode python"><code class="sourceCode python"><span id="cb6-1"><a href="#cb6-1" aria-hidden="true" tabindex="-1"></a><span class="cf">if</span> first:</span><span id="cb6-2"><a href="#cb6-2" aria-hidden="true" tabindex="-1"></a> start <span class="op">=</span> time.monotonic_ns()</span><span id="cb6-3"><a href="#cb6-3" aria-hidden="true" tabindex="-1"></a> pr.begin_texture_mode(texture)</span><span id="cb6-4"><a href="#cb6-4" aria-hidden="true" tabindex="-1"></a> pr.clear_background(pr.BLACK)</span><span id="cb6-5"><a href="#cb6-5" aria-hidden="true" tabindex="-1"></a></span><span id="cb6-6"><a href="#cb6-6" aria-hidden="true" tabindex="-1"></a> edge_times <span class="op">=</span> [] <span class="co"># new</span></span><span id="cb6-7"><a href="#cb6-7" aria-hidden="true" tabindex="-1"></a> vertex_times <span class="op">=</span> [] <span class="co"># new</span></span><span id="cb6-8"><a href="#cb6-8" aria-hidden="true" tabindex="-1"></a></span><span id="cb6-9"><a href="#cb6-9" aria-hidden="true" tabindex="-1"></a><span class="cf">for</span> edge <span class="kw">in</span> edge_list:</span><span id="cb6-10"><a href="#cb6-10" aria-hidden="true" tabindex="-1"></a> es <span class="op">=</span> time.monotonic_ns() <span class="co"># new</span></span><span id="cb6-11"><a href="#cb6-11" aria-hidden="true" tabindex="-1"></a> edge.draw_edge(pr.DARKGRAY)</span><span id="cb6-12"><a href="#cb6-12" aria-hidden="true" tabindex="-1"></a> ee <span class="op">=</span> time.monotonic_ns() <span class="co"># new</span></span><span id="cb6-13"><a href="#cb6-13" aria-hidden="true" tabindex="-1"></a> edge_times.append(ee <span class="op">-</span> es) <span class="co"># new</span></span><span id="cb6-14"><a href="#cb6-14" aria-hidden="true" tabindex="-1"></a><span class="cf">for</span> vertex <span class="kw">in</span> graph:</span><span id="cb6-15"><a href="#cb6-15" aria-hidden="true" tabindex="-1"></a> vs <span class="op">=</span> time.monotonic_ns() <span class="co"># new</span></span><span id="cb6-16"><a href="#cb6-16" aria-hidden="true" tabindex="-1"></a> vertex.draw_vertex(pr.DARKGRAY)</span><span id="cb6-17"><a href="#cb6-17" aria-hidden="true" tabindex="-1"></a> ve <span class="op">=</span> time.monotonic_ns() <span class="co"># new</span></span><span id="cb6-18"><a href="#cb6-18" aria-hidden="true" tabindex="-1"></a> vertex_times.append(ve <span class="op">-</span> vs) <span class="co"># new</span></span><span id="cb6-19"><a href="#cb6-19" aria-hidden="true" tabindex="-1"></a></span><span id="cb6-20"><a href="#cb6-20" aria-hidden="true" tabindex="-1"></a> pr.end_texture_mode()</span><span id="cb6-21"><a href="#cb6-21" aria-hidden="true" tabindex="-1"></a></span><span id="cb6-22"><a href="#cb6-22" aria-hidden="true" tabindex="-1"></a> source_rec <span class="op">=</span> pr.Rectangle(<span class="dv">0</span>, <span class="dv">0</span>, screen_width, screen_height)</span><span id="cb6-23"><a href="#cb6-23" aria-hidden="true" tabindex="-1"></a> dest_rec <span class="op">=</span> pr.Rectangle(<span class="dv">0</span>, <span class="dv">0</span>, screen_width, screen_height)</span><span id="cb6-24"><a href="#cb6-24" aria-hidden="true" tabindex="-1"></a></span><span id="cb6-25"><a href="#cb6-25" aria-hidden="true" tabindex="-1"></a> pr.begin_drawing()</span><span id="cb6-26"><a href="#cb6-26" aria-hidden="true" tabindex="-1"></a> pr.draw_texture_pro(texture.texture, source_rec, dest_rec, pr.Vector2(<span class="dv">0</span>, <span class="dv">0</span>), <span class="dv">0</span>, pr.WHITE)</span><span id="cb6-27"><a href="#cb6-27" aria-hidden="true" tabindex="-1"></a> pr.end_drawing()</span><span id="cb6-28"><a href="#cb6-28" aria-hidden="true" tabindex="-1"></a></span><span id="cb6-29"><a href="#cb6-29" aria-hidden="true" tabindex="-1"></a> end <span class="op">=</span> time.monotonic_ns()</span><span id="cb6-30"><a href="#cb6-30" aria-hidden="true" tabindex="-1"></a> first_time.append(end <span class="op">-</span> start)</span><span id="cb6-31"><a href="#cb6-31" aria-hidden="true" tabindex="-1"></a></span><span id="cb6-32"><a href="#cb6-32" aria-hidden="true" tabindex="-1"></a> first <span class="op">=</span><span class="va">False</span></span><span id="cb6-33"><a href="#cb6-33" aria-hidden="true" tabindex="-1"></a></span><span id="cb6-34"><a href="#cb6-34" aria-hidden="true" tabindex="-1"></a><span class="bu">print</span>(<span class="st">&quot;Edge time avg: &quot;</span><span class="op">+</span><span class="bu">str</span>(<span class="bu">sum</span>(edge_times) <span class="op">/</span><span class="bu">len</span>(edge_times))) <span class="co"># new</span></span><span id="cb6-35"><a href="#cb6-35" aria-hidden="true" tabindex="-1"></a><span class="bu">print</span>(<span class="st">&quot;Vertex time avg: &quot;</span><span class="op">+</span><span class="bu">str</span>(<span class="bu">sum</span>(vertex_times) <span class="op">/</span><span class="bu">len</span>(vertex_times))) <span class="co"># new</span></span><span id="cb6-36"><a href="#cb6-36" aria-hidden="true" tabindex="-1"></a></span><span id="cb6-37"><a href="#cb6-37" aria-hidden="true" tabindex="-1"></a><span class="cf">continue</span></span></code></pre></div><p>Running this updated code once we find:</p><table><thead><tr><th>Library</th><th>Avg. Edge Draw Time (ns)</th><th>Avg. Vertex Draw Time (ns)</th></tr></thead><tbody><tr><td>PyGame</td><td>9504.15048</td><td>686.6508</td></tr><tr><td>Raylib</td><td>944.15884</td><td>3016.1852</td></tr></tbody></table><p>PyGame is faster at drawing vertices (circles), but slower at drawing edges (lines). Since we are drawing many more edges than we are vertices, this contributes to making PyGame slower.</p><p>PyGame is slower at drawing lines because it uses SDL which computes lines pixel by pixel on the CPU*, while Raylib appends the line ends to a queue for batch processing, to be asynchronously processed by the GPU.</p><p>In the case of vertices, Raylib calls <code>DrawCircleSector()</code>, and this in turn appends geometries to the GPU drawing queue, but each circle is made of many discrete geometries which are each appended to the queue, costing cycles. Contrasting this with the PyGame approach where PyGame only has to draw a few pixels onto the surface.</p><p>* There are ways to change the rendering pipeline for PyGame to make better use of GPUs, but these approaches are either complex or experimental.</p><h4 id="is-that-why-pygame-is-slower">Is that why PyGame is slower?</h4><p>That’s not the fully story. Let’s consider what the numbers above mean. The first frame renders 2,500 vertices, 25,000 edges. Each subsequent frame renders 1 vertex and 1 edge. If we multiply these numbers with the values we calculated for the amount of time each draw takes, we get the following expected frame times:</p><table><colgroup><col style="width: 33%" /><col style="width: 33%" /><col style="width: 33%" /></colgroup><thead><tr><th>Library</th><th>Expected First Frame Draw Time (ms)</th><th>Expected Subsequent Frame Draw Time (ms)</th></tr></thead><tbody><tr><td>PyGame</td><td>239.3204</td><td>0.0101908</td></tr><tr><td>Raylib</td><td>31.14443</td><td>0.003960344</td></tr></tbody></table><p>Based on this, we see the first frame times are on par with what we actually saw in our benchmarking, but the subsequent frame draw times are orders of magnitude faster than what we benchmarked, and since most frames are subsequent frames, they are severely impacting performance. Let’s see if we can figure out why this disparity exists.</p><h5 id="pygame-flamegraph">PyGame Flamegraph</h5><p><img src="images/pygame-flamegraph.svg" /></p><h5 id="raylib-flamegraph">Raylib Flamegraph</h5><p><img src="images/rlib-flamegraph.svg" /></p><p>We see most of our time is being spent in <code>EndDrawing()</code> for Raylib and <code>pygame.display.update()</code> for Pygame. After instrumenting these calls we find the following times per invocation:</p><table><thead><tr><th>Library</th><th>Function</th><th>Average Call Time (ms)</th></tr></thead><tbody><tr><td>PyGame</td><td><code>EndDrawing()</code></td><td>5.677199</td></tr><tr><td>Raylib</td><td><code>pygame.display.update()</code></td><td>2.680623</td></tr></tbody></table><p>Based on our original frame time benchmarks, these calls make up almost all of the time spent rendering subsequent frames.</p><h4 id="what-are-these-functions-doing">What Are These Functions Doing?</h4><p>In the case of Raylib, EndDrawing does a few things:</p><ol type="1"><li>Calls <code>rlDrawRenderBatchActive()</code><ul><li>This clears the batched geometries queue, issuing the OpenGL calls</li></ul></li><li>Calls <code>SwapScreenBuffer()</code><ul><li>This swaps the buffer the display scans out. In effect, this ensures the frame we just drew becomes visible.</li><li>This is done by with <code>glfwSwapBuffers()</code>, but this is beyond scope as it requires an understanding of OpenGL and double buffering.</li><li>In the normal case (which is how our code uses it), this function returns after the instructions have been issued, not once the frame has been rendered.</li></ul></li><li>Optionally waits to hit the target framerate in cases where rendering is happening faster than the target</li></ol><p>Most of the time spent here is on the second step. This is because issuing the instructions to swap will flush the driver’s command stream, and once a few frames are in flight, this will block until the GPU retires one.</p><p>Let’s step through the PyGame <code>update()</code> function too:</p><ol type="1"><li>Calls <code>pg_update()</code> in <code>src_c/display.c</code><ul><li>This performs some basic checks to make sure a display is set</li></ul></li><li><code>pg_update()</code> calls <code>SDL_UpdateWindowSurfaceRects</code><ul><li>This copies the buffer into a buffer owned by the windowing system (X11 in my case)</li></ul></li></ol><p>The main reason this is slower is PyGame copies the whole frame on the CPU for each frame while Raylib’s frame is already in VRAM and the swap doesn’t <a href="https://en.wikipedia.org/wiki/Bit_blit">blit</a>.</p><h2 id="takeaways">Takeaways</h2><p>Out of the box Raylib has better performance because it performs hardware accelerated rendering. In terms of ergonomics, they both have their own quirks. Raylib feels like a C library with Python bindings (because it is!), while PyGame feels inconsistent, mixing both explicit surface drawing, and global state for frame updates.</p><p>Personally, I’m not keen on using PyGame again because I enjoy writing performant software, and the reality of Python is it can’t be performant. This doesn’t mean I won’t ever write Python code again, it’s useful for first passes at a problem, but if I want to productionize that software I’ll have to rewrite it in a sensible programming language. The nice thing about doing a first pass on a project in Raylib is you can then rewrite it in C using Raylib directly, but the same isn’t true for PyGame.</p>]]></description> +<pubDate>Sun, 20 Sep 2026 00:00:00 -0500</pubDate> +<guid>https://blog.laack.co/pygame-vs-raylib.html</guid> +</item> +<item> <title><![CDATA[Easily Hostable Protocols Over Applications]]></title> <link>https://blog.laack.co/easily-hostable-protocols-over-applications.html</link> <description><![CDATA[<p>Motivated by Joshua Blais’ blog post about using the internet like it’s 1999 [1] I wanted to discuss an application and a protocol with characteristics that make them bad from a user freedom perspective. I also want to discuss solutions.</p><h2 id="zulip">Zulip</h2><p>Zulip [2] is an instant messaging program that looks like a bastion of freedom. I thought it was because it is free software which ought to be the epitome of user freedom, but it is not that simple. Free software is necessary but not sufficient for appropriate user freedom.</p><p>Try to find a third party Zulip client for GNU/Linux. You will not. This frequently happens when you use applications and not protocols. Let’s consider three alternative protocols that facilitate instant messaging:</p><ol type="1"><li>IRC</li><li>XMPP</li><li>Matrix</li></ol><p>Look for third party clients for any of these and they will abound. These protocols were sensibly designed to give users the freedom to decide how they interact with their data and the data others show them.</p><p>Nothing is stopping you from creating a third-party client for Zulip. The problem is applications aren’t designed with this in mind, but protocols are. The main reason applications generally have so few clients is they frequently change their interfaces in breaking ways. Quality protocols are designed from the ground up to ensure consistent interfaces, often with backwards compatibility in mind.</p><h2 id="at-protocol">AT Protocol</h2><p>The AT Protocol [3] is used by the social network Bluesky. This is a common way people introduce the protocol, and it should give you pause that a protocol is frequently associated with a singular company and social network.</p><p>Choices in the design of the AT Protocol have led to it being too costly for individuals to run full-fledged servers (see [4] for details). This results in most AT Protocol users being entirely dependent on the Bluesky organization [5] (this link is worth following). Having a strong reliance on a VC backed social media company [6] is a good way to become the product when investors demand returns. This also limits freedom by having a centralized authority with the ability to censor speech [7].</p><p>An alternative to the AT Protocol is ActivityPub. Mastodon [8] uses ActivityPub to facilitate microblogging, and the software can be hosted on cheap hardware without a reliance on a third-party. Proponents of the AT Protocol may claim the two perform different functions, and I agree, but the centralized feed functionality the AT Protocol can provide but ActivityPub can’t is something I consider to be deeply problematic from a human psychology perspective. As such, while ActivityPub can’t directly replace “your” BlueSky feed, it will give you a healthier microblogging experience. With that said, I think the case for microblogging is lacking, and individuals should consider if microblogs, both their own and those of others, are worthwhile (my answer is emphatically no).</p><h2 id="proposition">Proposition</h2><p>Host your own services for the dissemination of information, ensuring the services you host implement protocols designed for the type of information you are disseminating.</p><p>I use Git (not GitHub) for software distribution, RSS, Gemini [9], and HTTP for broadcasted textual information, email for bidirectional individual or small group communication, and XMPP or IRC for larger group communication. These are the protocols built for these use cases, and they should be used as such.</p><h2 id="citations">Citations</h2><p>[1] - <a href="https://joshblais.com/blog/using-the-internet-like-its-1999/">https://joshblais.com/blog/using-the-internet-like-its-1999/</a></p><p>[2] - <a href="https://zulip.com">https://zulip.com</a></p><p>[3] - <a href="https://en.wikipedia.org/wiki/AT_Protocol">https://en.wikipedia.org/wiki/AT_Protocol</a></p><p>[4] - <a href="https://dustycloud.org/blog/how-decentralized-is-bluesky/">https://dustycloud.org/blog/how-decentralized-is-bluesky/</a></p><p>[5] - <a href="https://arewedecentralizedyet.online/">https://arewedecentralizedyet.online/</a></p><p>[6] - <a href="https://bsky.social/about/blog/03-19-2026-series-b">https://bsky.social/about/blog/03-19-2026-series-b</a></p><p>[7] - <a href="https://bsky.social/about/support/community-guidelines">https://bsky.social/about/support/community-guidelines</a></p><p>[8] - <a href="https://joinmastodon.org/">https://joinmastodon.org/</a></p><p>[9] - <a href="http://geminiprotocol.net/">http://geminiprotocol.net/</a></p>]]></description> diff --git a/posts/site/images/pygame-flamegraph.svg b/posts/site/images/pygame-flamegraph.svg @@ -0,0 +1,2203 @@ +<?xml version="1.0" standalone="no"?> +<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> +<svg version="1.1" width="1200" height="600" + xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> +<style type="text/css"> + .func_g:hover { stroke:black; stroke-width:0.5; cursor:pointer; } +</style> +<svg class="func_g" x="0.0" y="216" width="1198.9972532361332" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 100.00% (1 120 0.000530498 15.362333807)</title> + <rect height="100%" width="100%" fill="rgb(255, 215, 125)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="0.0" y="192" width="3.8633150302579606" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/numpy/__config__.py:1:&lt;module&gt; 0.41% (1 1 2.964737474855793e-05 0.06226003326419403)</title> + <rect height="100%" width="100%" fill="rgb(57, 242, 168)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="0.028524319324887117" y="168" width="3.81369552386861" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1360:_find_and_load 0.40% (1 1 4.15469611220659e-06 0.061624805626433944)</title> + <rect height="100%" width="100%" fill="rgb(255, 165, 95)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load</text> +</g></svg> +<svg class="func_g" x="0.19414238908604647" y="144" width="3.644155936604607" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.39% (83 3 0.0004498513926631837 0.05945436421415004)</title> + <rect height="100%" width="100%" fill="rgb(255, 165, 95)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="0.19414238908604647" y="120" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.13% (37 28 2.0320511750247293e-05 0.02011838930647094)</title> + <rect height="100%" width="100%" fill="rgb(255, 140, 79)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="1.7656491803458334" y="120" width="1.7765625133911125" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:914:_load_unlocked 0.23% (47 1 0.00015456239245058092 0.03554548150146783)</title> + <rect height="100%" width="100%" fill="rgb(255, 90, 49)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_load_unlocked</text> +</g></svg> +<svg class="func_g" x="2.0270558856436933" y="96" width="1.3037103078795904" height="23"><g> + <title>&lt;frozen importlib._bootstrap_external&gt;:753:exec_module 0.19% (30 1 7.697720454446586e-05 0.029492039793285227)</title> + <rect height="100%" width="100%" fill="rgb(255, 165, 95)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">exec_module</text> +</g></svg> +<svg class="func_g" x="2.0270558856436933" y="72" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.16% (26 1 1.679055461087416e-05 0.025300803453263264)</title> + <rect height="100%" width="100%" fill="rgb(255, 140, 79)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="4.863315030257961" y="192" width="6.195700292977831" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/numpy/__init__.py:1:&lt;module&gt; 0.60% (1 1 0.0002999872690420613 0.09211916908788187)</title> + <rect height="100%" width="100%" fill="rgb(99, 206, 42)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="4.933160552295002" y="168" width="3.966941449658541" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1360:_find_and_load 0.41% (4 4 1.5486905300379766e-05 0.06358665600584011)</title> + <rect height="100%" width="100%" fill="rgb(255, 165, 95)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load</text> +</g></svg> +<svg class="func_g" x="5.104021037537147" y="144" width="3.791160397007273" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.40% (86 3 0.00046409082866459144 0.06133631151505714)</title> + <rect height="100%" width="100%" fill="rgb(255, 165, 95)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="5.104021037537147" y="120" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.14% (38 29 2.096373000254722e-05 0.020755209646816958)</title> + <rect height="100%" width="100%" fill="rgb(255, 140, 79)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="6.725271745887964" y="120" width="1.8644508357530323" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:914:_load_unlocked 0.24% (49 1 0.00015945485545374068 0.03667062553177284)</title> + <rect height="100%" width="100%" fill="rgb(255, 90, 49)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_load_unlocked</text> +</g></svg> +<svg class="func_g" x="6.994952926070499" y="96" width="1.3766311346900477" height="23"><g> + <title>&lt;frozen importlib._bootstrap_external&gt;:753:exec_module 0.20% (31 1 7.941381360149037e-05 0.030425570332562425)</title> + <rect height="100%" width="100%" fill="rgb(255, 165, 95)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">exec_module</text> +</g></svg> +<svg class="func_g" x="6.994952926070499" y="72" width="1.0388782071760785" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.17% (27 1 1.732203685525325e-05 0.026101666087974918)</title> + <rect height="100%" width="100%" fill="rgb(255, 140, 79)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="9.900102001953544" y="168" width="1.1335359864255339" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1409:_handle_fromlist 0.18% (7 7 0.00016517097422873617 0.027313472530312917)</title> + <rect height="100%" width="100%" fill="rgb(255, 165, 95)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_handle_fromlist</text> +</g></svg> +<svg class="func_g" x="9.900102001953544" y="144" width="1.1130727538956933" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.18% (12 4 7.496880581878684e-06 0.02705150275659393)</title> + <rect height="100%" width="100%" fill="rgb(255, 140, 79)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="12.062416396230109" y="192" width="3.795356456158884" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/numpy/_core/__init__.py:1:&lt;module&gt; 0.40% (1 1 0.00011002996243641926 0.06139002935581647)</title> + <rect height="100%" width="100%" fill="rgb(44, 255, 210)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="12.15830584246882" y="168" width="3.6902883800853656" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1409:_handle_fromlist 0.39% (5 5 2.659772237738345e-05 0.060044950562721064)</title> + <rect height="100%" width="100%" fill="rgb(255, 165, 95)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_handle_fromlist</text> +</g></svg> +<svg class="func_g" x="12.15830584246882" y="144" width="3.671494673750823" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.39% (26 9 1.6573796450418385e-05 0.05980435402018451)</title> + <rect height="100%" width="100%" fill="rgb(255, 140, 79)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="12.56021648394366" y="120" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.__import__&gt; 0.16% (42 12 7.64646730237906e-05 0.024205929395545403)</title> + <rect height="100%" width="100%" fill="rgb(255, 90, 49)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.__import__&gt;</text> +</g></svg> +<svg class="func_g" x="12.65645150191999" y="96" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1360:_find_and_load 0.15% (10 1 5.1174502998893115e-05 0.022881975212924135)</title> + <rect height="100%" width="100%" fill="rgb(255, 165, 95)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load</text> +</g></svg> +<svg class="func_g" x="12.717813936227204" y="72" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.14% (31 1 0.0001666724927425535 0.02202817919342423)</title> + <rect height="100%" width="100%" fill="rgb(255, 165, 95)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="14.45101310063003" y="120" width="1.3774927874122773" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.20% (31 1 0.00013479760291111275 0.030436601188432225)</title> + <rect height="100%" width="100%" fill="rgb(255, 215, 125)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="14.549384751928924" y="96" width="1.268591697340065" height="23"><g> + <title>prim.py:1:&lt;module&gt; 0.19% (0 0 0.00038512094235556345 0.0290424522492377)</title> + <rect height="100%" width="100%" fill="rgb(255, 90, 49)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="14.69904205698114" y="72" width="1.0736912040330404" height="23"><g> + <title>~:0:&lt;built-in method pygame.display.update&gt; 0.17% (5 5 0.02654734117356068 0.02654734117356068)</title> + <rect height="100%" width="100%" fill="rgb(255, 240, 141)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method pygame.display.update&gt;</text> +</g></svg> +<svg class="func_g" x="16.857772852388994" y="192" width="1" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/numpy/_core/_add_newdocs.py:1:&lt;module&gt; 0.14% (1 1 0.00015595780381889951 0.021037540011584054)</title> + <rect height="100%" width="100%" fill="rgb(57, 242, 168)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="20.630394542486894" y="192" width="1" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/numpy/_core/multiarray.py:1:&lt;module&gt; 0.10% (1 1 0.00012386553177340064 0.015900763828748145)</title> + <rect height="100%" width="100%" fill="rgb(44, 255, 210)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="23.869465438914094" y="192" width="1.0492881218252816" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/numpy/lib/__init__.py:1:&lt;module&gt; 0.17% (1 1 2.259732985781014e-05 0.026234933546139646)</title> + <rect height="100%" width="100%" fill="rgb(57, 242, 168)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="23.87125229364067" y="168" width="1.0457361229415407" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1409:_handle_fromlist 0.17% (1 1 3.1811458675054465e-05 0.026189460948275806)</title> + <rect height="100%" width="100%" fill="rgb(255, 165, 95)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_handle_fromlist</text> +</g></svg> +<svg class="func_g" x="23.87125229364067" y="144" width="1.0359659085207764" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.17% (11 4 7.22331649812652e-06 0.0260643829158945)</title> + <rect height="100%" width="100%" fill="rgb(255, 140, 79)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="32.250272349298804" y="192" width="7.623639105201015" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/pygame/__init__.py:1:&lt;module&gt; 0.72% (1 1 0.000195419270421897 0.11039960483903523)</title> + <rect height="100%" width="100%" fill="rgb(71, 230, 126)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="32.27873879872661" y="168" width="7.574968500422999" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1360:_find_and_load 0.71% (30 30 0.0001063017576206214 0.10977652501516724)</title> + <rect height="100%" width="100%" fill="rgb(255, 165, 95)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load</text> +</g></svg> +<svg class="func_g" x="32.573499896053036" y="144" width="7.265502079590387" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.69% (148 4 0.0008006293656630807 0.10581474389769613)</title> + <rect height="100%" width="100%" fill="rgb(255, 165, 95)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="32.573499896053036" y="120" width="1.796911393277807" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.23% (66 49 3.6165717607838715e-05 0.03580598733560613)</title> + <rect height="100%" width="100%" fill="rgb(255, 140, 79)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="33.94518035215669" y="96" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.12% (19 1 8.064668386450973e-05 0.018209603887186752)</title> + <rect height="100%" width="100%" fill="rgb(255, 215, 125)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="34.004034124717926" y="72" width="1" height="23"><g> + <title>prim.py:1:&lt;module&gt; 0.11% (0 0 0.00023041008309496216 0.017375512728804634)</title> + <rect height="100%" width="100%" fill="rgb(255, 90, 49)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="34.093571068312684" y="48" width="1" height="23"><g> + <title>~:0:&lt;built-in method pygame.display.update&gt; 0.10% (3 3 0.015882738155805366 0.015882738155805366)</title> + <rect height="100%" width="100%" fill="rgb(255, 240, 141)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method pygame.display.update&gt;</text> +</g></svg> +<svg class="func_g" x="35.37041128933084" y="120" width="3.941626323883887" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:914:_load_unlocked 0.41% (84 2 0.00027508459958404467 0.06326257242025886)</title> + <rect height="100%" width="100%" fill="rgb(255, 90, 49)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_load_unlocked</text> +</g></svg> +<svg class="func_g" x="35.83565356279292" y="96" width="3.100060936901677" height="23"><g> + <title>&lt;frozen importlib._bootstrap_external&gt;:753:exec_module 0.34% (53 2 0.00013700126630728735 0.05248887409688959)</title> + <rect height="100%" width="100%" fill="rgb(255, 165, 95)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">exec_module</text> +</g></svg> +<svg class="func_g" x="35.83565356279292" y="72" width="2.5173842378501803" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.29% (46 2 2.988322656433489e-05 0.04502946206219508)</title> + <rect height="100%" width="100%" fill="rgb(255, 140, 79)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="36.13815366445661" y="48" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.__import__&gt; 0.12% (32 9 5.755152756965643e-05 0.018218716668329363)</title> + <rect height="100%" width="100%" fill="rgb(255, 90, 49)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.__import__&gt;</text> +</g></svg> +<svg class="func_g" x="36.210585443358056" y="24" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1360:_find_and_load 0.11% (7 1 3.8516751641479284e-05 0.01722223577553351)</title> + <rect height="100%" width="100%" fill="rgb(255, 165, 95)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load</text> +</g></svg> +<svg class="func_g" x="36.25677019365018" y="0" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.11% (23 1 0.00012544690484966794 0.016579621830923773)</title> + <rect height="100%" width="100%" fill="rgb(255, 165, 95)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="37.56127141688565" y="48" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.15% (23 1 0.00010145610585229083 0.022908263687699205)</title> + <rect height="100%" width="100%" fill="rgb(255, 215, 125)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="37.63531134379462" y="24" width="1" height="23"><g> + <title>prim.py:1:&lt;module&gt; 0.14% (0 0 0.00028986324867605535 0.02185895035204553)</title> + <rect height="100%" width="100%" fill="rgb(255, 90, 49)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="37.74795168052938" y="0" width="1" height="23"><g> + <title>~:0:&lt;built-in method pygame.display.update&gt; 0.13% (4 4 0.01998099222860592 0.01998099222860592)</title> + <rect height="100%" width="100%" fill="rgb(255, 240, 141)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method pygame.display.update&gt;</text> +</g></svg> +<svg class="func_g" x="41.3346095876779" y="192" width="6.237263980291098" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/pygame/surfarray.py:1:&lt;module&gt; 0.60% (1 1 2.4740328821338153e-05 0.09265126633813327)</title> + <rect height="100%" width="100%" fill="rgb(57, 242, 168)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="41.3346095876779" y="168" width="6.234060847798585" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1360:_find_and_load 0.60% (1 1 5.265490297684659e-06 0.09261025991878911)</title> + <rect height="100%" width="100%" fill="rgb(255, 165, 95)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load</text> +</g></svg> +<svg class="func_g" x="41.583504401282404" y="144" width="5.979349100362863" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.58% (125 4 0.0006760474789260024 0.08934944671432601)</title> + <rect height="100%" width="100%" fill="rgb(255, 165, 95)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="41.583504401282404" y="120" width="1.3616981555989738" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.20% (56 42 3.0538153184126385e-05 0.030234398720368004)</title> + <rect height="100%" width="100%" fill="rgb(255, 140, 79)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="42.74174459832155" y="96" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.10% (16 1 6.809766122579063e-05 0.015376099513884483)</title> + <rect height="100%" width="100%" fill="rgb(255, 215, 125)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="43.94520255688138" y="120" width="3.172684841867177" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:914:_load_unlocked 0.35% (71 2 0.00023228007617000386 0.053418603450385314)</title> + <rect height="100%" width="100%" fill="rgb(255, 90, 49)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_load_unlocked</text> +</g></svg> +<svg class="func_g" x="44.338050832941484" y="96" width="2.462071188882423" height="23"><g> + <title>&lt;frozen importlib._bootstrap_external&gt;:753:exec_module 0.29% (45 2 0.00011568319208477221 0.04432134583956701)</title> + <rect height="100%" width="100%" fill="rgb(255, 165, 95)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">exec_module</text> +</g></svg> +<svg class="func_g" x="44.338050832941484" y="72" width="1.9700618643225538" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.25% (39 1 2.523324880078745e-05 0.038022655188682676)</title> + <rect height="100%" width="100%" fill="rgb(255, 140, 79)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="44.59348042355516" y="48" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.__import__&gt; 0.10% (27 8 4.85962254077245e-05 0.015383794301237637)</title> + <rect height="100%" width="100%" fill="rgb(255, 90, 49)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.__import__&gt;</text> +</g></svg> +<svg class="func_g" x="45.79515401936149" y="48" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.13% (20 1 8.566903429314684e-05 0.019343624624378785)</title> + <rect height="100%" width="100%" fill="rgb(255, 215, 125)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="45.85767296767067" y="24" width="1" height="23"><g> + <title>prim.py:1:&lt;module&gt; 0.12% (0 0 0.0002447590944137467 0.018457589630415522)</title> + <rect height="100%" width="100%" fill="rgb(255, 90, 49)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="45.9527859112383" y="0" width="1" height="23"><g> + <title>~:0:&lt;built-in method pygame.display.update&gt; 0.11% (3 3 0.01687185107356346 0.01687185107356346)</title> + <rect height="100%" width="100%" fill="rgb(255, 240, 141)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method pygame.display.update&gt;</text> +</g></svg> +<svg class="func_g" x="49.87049546968714" y="192" width="1149.0853190012917" height="23"><g> + <title>prim.py:1:&lt;module&gt; 95.84% (1 1 0.19524092517944258 14.723362515523402)</title> + <rect height="100%" width="100%" fill="rgb(99, 206, 42)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="49.87049546968714" y="168" width="4.319412843505882" height="23"><g> + <title>/usr/lib/python3.14/random.py:347:choice 0.44% (47940 47940 0.024342034829270172 0.0680989856758447)</title> + <rect height="100%" width="100%" fill="rgb(255, 115, 64)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">choice</text> +</g></svg> +<svg class="func_g" x="49.87049546968714" y="144" width="1.7802126217106662" height="23"><g> + <title>/usr/lib/python3.14/random.py:245:_randbelow_with_getrandbits 0.23% (47940 47940 0.02165750405296974 0.035592210093792084)</title> + <rect height="100%" width="100%" fill="rgb(255, 140, 79)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_randbelow_with_getrandbits</text> +</g></svg> +<svg class="func_g" x="55.18990831319302" y="168" width="7.7583987057293875" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1360:_find_and_load 0.73% (2 2 1.656223841177441e-05 0.11212479376045309)</title> + <rect height="100%" width="100%" fill="rgb(255, 165, 95)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load</text> +</g></svg> +<svg class="func_g" x="55.491222055074985" y="144" width="7.449247145312707" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.70% (151 5 0.0008184276426457021 0.10816704347788524)</title> + <rect height="100%" width="100%" fill="rgb(255, 165, 95)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="55.491222055074985" y="120" width="1.859087733302732" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.24% (68 51 3.6969694437649946e-05 0.03660196723288051)</title> + <rect height="100%" width="100%" fill="rgb(255, 140, 79)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="56.89339545802323" y="96" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.12% (19 1 8.24394884738706e-05 0.018614409890598267)</title> + <rect height="100%" width="100%" fill="rgb(255, 215, 125)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="56.953557570985744" y="72" width="1" height="23"><g> + <title>prim.py:1:&lt;module&gt; 0.12% (0 0 0.0002355321816019493 0.01776177658762051)</title> + <rect height="100%" width="100%" fill="rgb(255, 90, 49)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="58.35030978837773" y="120" width="4.051480443441763" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:914:_load_unlocked 0.42% (86 2 0.0002811998285614323 0.06466892201828589)</title> + <rect height="100%" width="100%" fill="rgb(255, 90, 49)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_load_unlocked</text> +</g></svg> +<svg class="func_g" x="58.82589456387912" y="96" width="3.1912067570904785" height="23"><g> + <title>&lt;frozen importlib._bootstrap_external&gt;:753:exec_module 0.35% (54 2 0.00014004685342822377 0.05365572053014359)</title> + <rect height="100%" width="100%" fill="rgb(255, 165, 95)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">exec_module</text> +</g></svg> +<svg class="func_g" x="58.82589456387912" y="72" width="2.5955769467420358" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.30% (47 2 3.0547541372580734e-05 0.04603048309956064)</title> + <rect height="100%" width="100%" fill="rgb(255, 140, 79)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="59.135119350931056" y="48" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.__import__&gt; 0.12% (33 10 5.883091859924897e-05 0.01862372525212303)</title> + <rect height="100%" width="100%" fill="rgb(255, 90, 49)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.__import__&gt;</text> +</g></svg> +<svg class="func_g" x="59.20916131416813" y="24" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1360:_find_and_load 0.11% (8 1 3.937299279823242e-05 0.017605092232889523)</title> + <rect height="100%" width="100%" fill="rgb(255, 165, 95)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load</text> +</g></svg> +<svg class="func_g" x="59.256372767967925" y="0" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.11% (24 1 0.00012823563438530994 0.016948192750589588)</title> + <rect height="100%" width="100%" fill="rgb(255, 165, 95)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="60.5898735196882" y="48" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.15% (24 1 0.00010371151135074104 0.02341752257800598)</title> + <rect height="100%" width="100%" fill="rgb(255, 215, 125)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="60.665559380637816" y="24" width="1" height="23"><g> + <title>prim.py:1:&lt;module&gt; 0.15% (0 0 0.00029630701230536733 0.02234488263182503)</title> + <rect height="100%" width="100%" fill="rgb(255, 90, 49)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="63.96622235620846" y="168" width="1" height="23"><g> + <title>prim.py:25:draw_vertex 0.12% (4791 4791 0.004502967946446567 0.018335879619686517)</title> + <rect height="100%" width="100%" fill="rgb(255, 90, 49)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">draw_vertex</text> +</g></svg> +<svg class="func_g" x="66.39488575922353" y="168" width="23.90399989945009" height="23"><g> + <title>prim.py:35:draw_edge 2.08% (26355 26355 0.023120831152022247 0.31882036275758263)</title> + <rect height="100%" width="100%" fill="rgb(255, 190, 110)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">draw_edge</text> +</g></svg> +<svg class="func_g" x="66.39488575922353" y="144" width="22.097963510478976" height="23"><g> + <title>~:0:&lt;built-in method pygame.draw.line&gt; 1.92% (26355 26355 0.2956995316055604 0.2956995316055604)</title> + <rect height="100%" width="100%" fill="rgb(255, 115, 64)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method pygame.draw.line&gt;</text> +</g></svg> +<svg class="func_g" x="91.29888565867363" y="168" width="12.79547659905508" height="23"><g> + <title>~:0:&lt;built-in method _heapq.heappop&gt; 1.15% (23960 23960 0.11111654629237243 0.17660933470456697)</title> + <rect height="100%" width="100%" fill="rgb(255, 140, 79)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method _heapq.heappop&gt;</text> +</g></svg> +<svg class="func_g" x="91.29888565867363" y="144" width="4.115835080057813" height="23"><g> + <title>prim.py:38:__lt__ 0.43% (318332 318332 0.06549278841219454 0.06549278841219454)</title> + <rect height="100%" width="100%" fill="rgb(255, 165, 95)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">__lt__</text> +</g></svg> +<svg class="func_g" x="105.0943622577287" y="168" width="3.3167834122722706" height="23"><g> + <title>~:0:&lt;built-in method _heapq.heappush&gt; 0.36% (23960 23960 0.03403416454904794 0.05526334962268252)</title> + <rect height="100%" width="100%" fill="rgb(255, 240, 141)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method _heapq.heappush&gt;</text> +</g></svg> +<svg class="func_g" x="105.0943622577287" y="144" width="1" height="23"><g> + <title>prim.py:38:__lt__ 0.14% (66421 66421 0.021229185073634582 0.021229185073634582)</title> + <rect height="100%" width="100%" fill="rgb(255, 165, 95)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">__lt__</text> +</g></svg> +<svg class="func_g" x="109.41528887014897" y="168" width="5.394773356043383" height="23"><g> + <title>~:0:&lt;built-in method pygame.base.init&gt; 0.53% (1 1 0.08051777871997104 0.08186572315121535)</title> + <rect height="100%" width="100%" fill="rgb(255, 190, 110)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method pygame.base.init&gt;</text> +</g></svg> +<svg class="func_g" x="115.81006222619237" y="168" width="8.930705370323667" height="23"><g> + <title>~:0:&lt;built-in method pygame.display.set_mode&gt; 0.83% (1 1 0.12704622143898006 0.12713263336766947)</title> + <rect height="100%" width="100%" fill="rgb(255, 215, 125)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method pygame.display.set_mode&gt;</text> +</g></svg> +<svg class="func_g" x="125.74076759651604" y="168" width="1050.2785587185413" height="23"><g> + <title>~:0:&lt;built-in method pygame.display.update&gt; 87.61% (2395 2395 13.458440925279433 13.458440925279433)</title> + <rect height="100%" width="100%" fill="rgb(255, 240, 141)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method pygame.display.update&gt;</text> +</g></svg> +<svg class="func_g" x="1177.0193263150572" y="168" width="5.325277449037895" height="23"><g> + <title>~:0:&lt;built-in method pygame.event.get&gt; 0.53% (2396 2396 0.0809760383467215 0.0809760383467215)</title> + <rect height="100%" width="100%" fill="rgb(255, 90, 49)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method pygame.event.get&gt;</text> +</g></svg> +<svg class="func_g" x="2.0269898775887185" y="264" width="1" height="23"><g> + <title>/usr/lib/python3.14/random.py:245:_randbelow_with_getrandbits 0.15% (50021 50021 0.022597388000000003 0.037136827000000004)</title> + <rect height="100%" width="100%" fill="rgb(255, 140, 79)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_randbelow_with_getrandbits</text> +</g></svg> +<svg class="func_g" x="2.0269898775887185" y="288" width="1" height="23"><g> + <title>/usr/lib/python3.14/random.py:347:choice 0.15% (50021 50021 0.022597388000000003 0.037136827000000004)</title> + <rect height="100%" width="100%" fill="rgb(225, 225, 225)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">choice</text> +</g></svg> +<svg class="func_g" x="2.0269898775887185" y="312" width="1" height="23"><g> + <title>prim.py:1:&lt;module&gt; 0.17% (50021 50021 0.025398421 0.071054319)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="2.0269898775887185" y="336" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 1.33% (1 1 0.20371391500000002 15.362321282000002)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="2.0269898775887185" y="360" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="3.7921385764117534" y="264" width="1" height="23"><g> + <title>/usr/lib/python3.14/random.py:347:choice 0.17% (50021 50021 0.025398421 0.071054319)</title> + <rect height="100%" width="100%" fill="rgb(255, 115, 64)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">choice</text> +</g></svg> +<svg class="func_g" x="3.7921385764117534" y="288" width="1" height="23"><g> + <title>prim.py:1:&lt;module&gt; 0.17% (50021 50021 0.025398421 0.071054319)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="3.7921385764117534" y="312" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 1.33% (1 1 0.20371391500000002 15.362321282000002)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="3.7921385764117534" y="336" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="8.544343066345162" y="264" width="14.91269539622881" height="23"><g> + <title>prim.py:1:&lt;module&gt; 1.33% (1 1 0.20371391500000002 15.362321282000002)</title> + <rect height="100%" width="100%" fill="rgb(255, 90, 49)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="8.544343066345162" y="288" width="14.91269539622881" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 1.33% (1 1 0.20371391500000002 15.362321282000002)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="8.544343066345162" y="312" width="14.91269539622881" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="8.555343888324915" y="336" width="2.600296989108195" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.00% (123 92 6.730500000000001e-05 0.06663553600000001)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="8.555343888324915" y="360" width="2.600296989108195" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1360:_find_and_load 0.01% (165 5 0.000894262 0.11818965000000001)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load</text> +</g></svg> +<svg class="func_g" x="12.15564087743311" y="336" width="3.9047779141252095" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1409:_handle_fromlist 0.00% (40 14 2.5158000000000002e-05 0.09077931800000001)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_handle_fromlist</text> +</g></svg> +<svg class="func_g" x="12.967057025470806" y="360" width="1" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/numpy/_core/__init__.py:1:&lt;module&gt; 0.00% (5 5 2.7752e-05 0.062650758)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="12.967057025470806" y="384" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 0.00011480500000000001 0.06405421)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="12.967057025470806" y="408" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="17.06041879155832" y="336" width="5.319229832487096" height="23"><g> + <title>&lt;frozen importlib._bootstrap_external&gt;:753:exec_module 0.00% (119 4 7.7618e-05 0.116958481)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">exec_module</text> +</g></svg> +<svg class="func_g" x="17.06041879155832" y="360" width="5.319229832487096" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:914:_load_unlocked 0.00% (119 4 0.000306957 0.117603492)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_load_unlocked</text> +</g></svg> +<svg class="func_g" x="17.06041879155832" y="384" width="5.319229832487096" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.00% (157 4 0.0005119370000000001 0.11773269600000001)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="17.06041879155832" y="408" width="5.319229832487096" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1360:_find_and_load 0.01% (165 5 0.000894262 0.11818965000000001)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load</text> +</g></svg> +<svg class="func_g" x="25.663056208598334" y="264" width="1" height="23"><g> + <title>prim.py:35:draw_edge 0.16% (27499 27499 0.024124220000000002 0.33265640500000004)</title> + <rect height="100%" width="100%" fill="rgb(255, 190, 110)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">draw_edge</text> +</g></svg> +<svg class="func_g" x="25.663056208598334" y="288" width="1" height="23"><g> + <title>prim.py:1:&lt;module&gt; 0.16% (27499 27499 0.024124220000000002 0.33265640500000004)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="25.663056208598334" y="312" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 1.33% (1 1 0.20371391500000002 15.362321282000002)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="25.663056208598334" y="336" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="27.54747026313953" y="264" width="6.068089576872851" height="23"><g> + <title>prim.py:38:__lt__ 0.59% (401450 401450 0.09048550000000001 0.09048550000000001)</title> + <rect height="100%" width="100%" fill="rgb(198, 198, 255)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">__lt__</text> +</g></svg> +<svg class="func_g" x="27.54747026313953" y="288" width="4.337850103379085" height="23"><g> + <title>~:0:&lt;built-in method _heapq.heappop&gt; 0.44% (332147 332147 0.06833501900000001 0.06833501900000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method _heapq.heappop&gt;</text> +</g></svg> +<svg class="func_g" x="27.54747026313953" y="312" width="4.337850103379085" height="23"><g> + <title>prim.py:1:&lt;module&gt; 0.75% (25000 25000 0.11593873900000001 0.184273758)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="27.54747026313953" y="336" width="4.337850103379085" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 1.33% (1 1 0.20371391500000002 15.362321282000002)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="27.54747026313953" y="360" width="4.337850103379085" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="27.551160444927078" y="384" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.00% (123 92 6.730500000000001e-05 0.06663553600000001)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="27.551160444927078" y="408" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1360:_find_and_load 0.01% (165 5 0.000894262 0.11818965000000001)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load</text> +</g></svg> +<svg class="func_g" x="28.758865687626635" y="384" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1409:_handle_fromlist 0.00% (40 14 2.5158000000000002e-05 0.09077931800000001)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_handle_fromlist</text> +</g></svg> +<svg class="func_g" x="30.404153845544204" y="384" width="1.1197604035461821" height="23"><g> + <title>&lt;frozen importlib._bootstrap_external&gt;:753:exec_module 0.00% (119 4 7.7618e-05 0.116958481)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">exec_module</text> +</g></svg> +<svg class="func_g" x="30.404153845544204" y="408" width="1.1197604035461821" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:914:_load_unlocked 0.00% (119 4 0.000306957 0.117603492)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_load_unlocked</text> +</g></svg> +<svg class="func_g" x="30.404153845544204" y="432" width="1.1197604035461821" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.00% (157 4 0.0005119370000000001 0.11773269600000001)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="30.404153845544204" y="456" width="1.1197604035461821" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1360:_find_and_load 0.01% (165 5 0.000894262 0.11818965000000001)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load</text> +</g></svg> +<svg class="func_g" x="32.88532036651862" y="288" width="1" height="23"><g> + <title>~:0:&lt;built-in method _heapq.heappush&gt; 0.14% (69303 69303 0.022150481000000003 0.022150481000000003)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method _heapq.heappush&gt;</text> +</g></svg> +<svg class="func_g" x="32.88532036651862" y="312" width="1" height="23"><g> + <title>prim.py:1:&lt;module&gt; 0.23% (25000 25000 0.035511166000000004 0.057661647)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="32.88532036651862" y="336" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 1.33% (1 1 0.20371391500000002 15.362321282000002)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="32.88532036651862" y="360" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="34.7093781048074" y="264" width="8.056317229629961" height="23"><g> + <title>~:0:&lt;built-in method _heapq.heappop&gt; 0.75% (25000 25000 0.11593873900000001 0.184273758)</title> + <rect height="100%" width="100%" fill="rgb(255, 140, 79)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method _heapq.heappop&gt;</text> +</g></svg> +<svg class="func_g" x="34.7093781048074" y="288" width="8.056317229629961" height="23"><g> + <title>prim.py:1:&lt;module&gt; 0.75% (25000 25000 0.11593873900000001 0.184273758)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="34.7093781048074" y="312" width="8.056317229629961" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 1.33% (1 1 0.20371391500000002 15.362321282000002)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="34.7093781048074" y="336" width="8.056317229629961" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="34.71563895070148" y="360" width="1.049020033524469" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.00% (123 92 6.730500000000001e-05 0.06663553600000001)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="34.71563895070148" y="384" width="1.049020033524469" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1360:_find_and_load 0.01% (165 5 0.000894262 0.11818965000000001)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load</text> +</g></svg> +<svg class="func_g" x="36.76465898422596" y="360" width="1.7914331057784008" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1409:_handle_fromlist 0.00% (40 14 2.5158000000000002e-05 0.09077931800000001)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_handle_fromlist</text> +</g></svg> +<svg class="func_g" x="39.55609209000436" y="360" width="2.5964334504578894" height="23"><g> + <title>&lt;frozen importlib._bootstrap_external&gt;:753:exec_module 0.00% (119 4 7.7618e-05 0.116958481)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">exec_module</text> +</g></svg> +<svg class="func_g" x="39.55609209000436" y="384" width="2.5964334504578894" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:914:_load_unlocked 0.00% (119 4 0.000306957 0.117603492)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_load_unlocked</text> +</g></svg> +<svg class="func_g" x="39.55609209000436" y="408" width="2.5964334504578894" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.00% (157 4 0.0005119370000000001 0.11773269600000001)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="39.55609209000436" y="432" width="2.5964334504578894" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1360:_find_and_load 0.01% (165 5 0.000894262 0.11818965000000001)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load</text> +</g></svg> +<svg class="func_g" x="43.76569533443737" y="264" width="1.7738820282498473" height="23"><g> + <title>~:0:&lt;built-in method _heapq.heappush&gt; 0.23% (25000 25000 0.035511166000000004 0.057661647)</title> + <rect height="100%" width="100%" fill="rgb(255, 240, 141)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method _heapq.heappush&gt;</text> +</g></svg> +<svg class="func_g" x="43.76569533443737" y="288" width="1.7738820282498473" height="23"><g> + <title>prim.py:1:&lt;module&gt; 0.23% (25000 25000 0.035511166000000004 0.057661647)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="43.76569533443737" y="312" width="1.7738820282498473" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 1.33% (1 1 0.20371391500000002 15.362321282000002)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="43.76569533443737" y="336" width="1.7738820282498473" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="50.84446998210301" y="264" width="5.562429908454253" height="23"><g> + <title>~:0:&lt;built-in method pygame.base.init&gt; 0.55% (1 1 0.084012058 0.08541850000000001)</title> + <rect height="100%" width="100%" fill="rgb(255, 190, 110)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method pygame.base.init&gt;</text> +</g></svg> +<svg class="func_g" x="50.84446998210301" y="288" width="5.562429908454253" height="23"><g> + <title>prim.py:1:&lt;module&gt; 0.55% (1 1 0.084012058 0.08541850000000001)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="50.84446998210301" y="312" width="5.562429908454253" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 1.33% (1 1 0.20371391500000002 15.362321282000002)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="50.84446998210301" y="336" width="5.562429908454253" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="50.84900674481856" y="360" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.00% (123 92 6.730500000000001e-05 0.06663553600000001)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="50.84900674481856" y="384" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1360:_find_and_load 0.01% (165 5 0.000894262 0.11818965000000001)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load</text> +</g></svg> +<svg class="func_g" x="52.33377698972885" y="360" width="1.0227409924285542" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1409:_handle_fromlist 0.00% (40 14 2.5158000000000002e-05 0.09077931800000001)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_handle_fromlist</text> +</g></svg> +<svg class="func_g" x="54.356517982157406" y="360" width="1.6060640148329397" height="23"><g> + <title>&lt;frozen importlib._bootstrap_external&gt;:753:exec_module 0.00% (119 4 7.7618e-05 0.116958481)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">exec_module</text> +</g></svg> +<svg class="func_g" x="54.356517982157406" y="384" width="1.6060640148329397" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:914:_load_unlocked 0.00% (119 4 0.000306957 0.117603492)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_load_unlocked</text> +</g></svg> +<svg class="func_g" x="54.356517982157406" y="408" width="1.6060640148329397" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.00% (157 4 0.0005119370000000001 0.11773269600000001)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="54.356517982157406" y="432" width="1.6060640148329397" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1360:_find_and_load 0.01% (165 5 0.000894262 0.11818965000000001)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load</text> +</g></svg> +<svg class="func_g" x="57.406899890557256" y="264" width="9.354631443905841" height="23"><g> + <title>~:0:&lt;built-in method pygame.display.set_mode&gt; 0.86% (1 1 0.13255972400000002 0.132649886)</title> + <rect height="100%" width="100%" fill="rgb(255, 215, 125)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method pygame.display.set_mode&gt;</text> +</g></svg> +<svg class="func_g" x="57.406899890557256" y="288" width="9.354631443905841" height="23"><g> + <title>prim.py:1:&lt;module&gt; 0.86% (1 1 0.13255972400000002 0.132649886)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="57.406899890557256" y="312" width="9.354631443905841" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 1.33% (1 1 0.20371391500000002 15.362321282000002)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="57.406899890557256" y="336" width="9.354631443905841" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="57.41405829171708" y="360" width="1.3427676759057592" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.00% (123 92 6.730500000000001e-05 0.06663553600000001)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="57.41405829171708" y="384" width="1.3427676759057592" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1360:_find_and_load 0.01% (165 5 0.000894262 0.11818965000000001)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load</text> +</g></svg> +<svg class="func_g" x="59.756825967622845" y="360" width="2.191613133436337" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1409:_handle_fromlist 0.00% (40 14 2.5158000000000002e-05 0.09077931800000001)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_handle_fromlist</text> +</g></svg> +<svg class="func_g" x="62.94843910105918" y="360" width="3.112018378749709" height="23"><g> + <title>&lt;frozen importlib._bootstrap_external&gt;:753:exec_module 0.00% (119 4 7.7618e-05 0.116958481)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">exec_module</text> +</g></svg> +<svg class="func_g" x="62.94843910105918" y="384" width="3.112018378749709" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:914:_load_unlocked 0.00% (119 4 0.000306957 0.117603492)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_load_unlocked</text> +</g></svg> +<svg class="func_g" x="62.94843910105918" y="408" width="3.112018378749709" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.00% (157 4 0.0005119370000000001 0.11773269600000001)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="62.94843910105918" y="432" width="3.112018378749709" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1360:_find_and_load 0.01% (165 5 0.000894262 0.11818965000000001)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load</text> +</g></svg> +<svg class="func_g" x="67.7615313344631" y="264" width="1095.9015371919622" height="23"><g> + <title>~:0:&lt;built-in method pygame.display.update&gt; 91.41% (2499 2499 14.042505116000001 14.042505116000001)</title> + <rect height="100%" width="100%" fill="rgb(230, 230, 255)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method pygame.display.update&gt;</text> +</g></svg> +<svg class="func_g" x="67.7615313344631" y="288" width="1095.9015371919622" height="23"><g> + <title>prim.py:1:&lt;module&gt; 91.41% (2499 2499 14.042505116000001 14.042505116000001)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="67.7615313344631" y="312" width="1095.9015371919622" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 1.33% (1 1 0.20371391500000002 15.362321282000002)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="67.7615313344631" y="336" width="1095.9015371919622" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="68.51984526177078" y="360" width="247.17739568095396" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.00% (123 92 6.730500000000001e-05 0.06663553600000001)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="68.51984526177078" y="384" width="247.17739568095396" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1360:_find_and_load 0.01% (165 5 0.000894262 0.11818965000000001)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load</text> +</g></svg> +<svg class="func_g" x="68.51984526177078" y="408" width="23.3146594069094" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/numpy/__config__.py:1:&lt;module&gt; 0.00% (1 1 4.335e-06 0.064299175)</title> + <rect height="100%" width="100%" fill="rgb(204, 204, 204)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="68.51984526177078" y="432" width="23.3146594069094" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 3.0934e-05 0.06496197000000001)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="68.51984526177078" y="456" width="23.3146594069094" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="92.83450466868017" y="408" width="24.08872633170819" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/numpy/__init__.py:1:&lt;module&gt; 0.00% (4 4 1.6159000000000002e-05 0.066346165)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="92.83450466868017" y="432" width="24.08872633170819" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 0.000313006 0.09611692100000001)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="92.83450466868017" y="456" width="24.08872633170819" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="119.34192525320005" y="408" width="1" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/numpy/_core/_internal.py:1:&lt;module&gt; 0.00% (1 1 5.366e-06 0.00335226)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="119.34192525320005" y="432" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 3.9396e-05 0.004877391)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="119.34192525320005" y="456" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="120.60957853402994" y="408" width="1" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/numpy/_core/_methods.py:1:&lt;module&gt; 0.00% (2 2 1.0823000000000001e-05 0.003747989)</title> + <rect height="100%" width="100%" fill="rgb(204, 204, 204)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="120.60957853402994" y="432" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 4.1242e-05 0.003842242)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="120.60957853402994" y="456" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="122.02687628311993" y="408" width="2.8398051543303615" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/numpy/_core/einsumfunc.py:1:&lt;module&gt; 0.00% (1 1 5.084e-06 0.010154216)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="122.02687628311993" y="432" width="2.8398051543303615" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 2.4352e-05 0.010266055000000001)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="122.02687628311993" y="456" width="2.8398051543303615" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="126.93179478817572" y="408" width="1" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/numpy/_typing/__init__.py:1:&lt;module&gt; 0.00% (6 6 3.071e-05 0.004005662)</title> + <rect height="100%" width="100%" fill="rgb(225, 225, 225)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="126.93179478817572" y="432" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 4.3357000000000005e-05 0.004050986)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="126.93179478817572" y="456" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="128.94992833711953" y="408" width="4.188974093099119" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/numpy/lib/_arraypad_impl.py:1:&lt;module&gt; 0.00% (1 1 5.510000000000001e-06 0.013722041)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="128.94992833711953" y="432" width="4.188974093099119" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 1.2482e-05 0.013790598000000001)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="128.94992833711953" y="456" width="4.188974093099119" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="134.9627280721092" y="408" width="3.918931189028523" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/numpy/lib/_index_tricks_impl.py:1:&lt;module&gt; 0.00% (2 2 9.643e-06 0.013007923000000001)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="134.9627280721092" y="432" width="3.918931189028523" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 4.9041e-05 0.0133533)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="134.9627280721092" y="456" width="3.918931189028523" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="142.82730724617565" y="408" width="1.2750304862174446" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/numpy/linalg/_linalg.py:1:&lt;module&gt; 0.00% (3 3 1.5373e-05 0.00601623)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="142.82730724617565" y="432" width="1.2750304862174446" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 0.00012208 0.008913801)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="142.82730724617565" y="456" width="1.2750304862174446" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="145.10233773239307" y="408" width="2.716603501057363" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/numpy/matrixlib/defmatrix.py:1:&lt;module&gt; 0.00% (1 1 4.992000000000001e-06 0.009828414)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="145.10233773239307" y="432" width="2.716603501057362" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 1.5094000000000002e-05 0.009910375)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="145.10233773239307" y="456" width="2.716603501057362" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="148.81894123345046" y="408" width="42.31338313338092" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/pygame/__init__.py:1:&lt;module&gt; 0.00% (31 31 0.000110915 0.11454056400000001)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="148.81894123345046" y="432" width="42.31338313338092" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 0.00020390000000000002 0.115190684)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="148.81894123345046" y="456" width="42.31338313338092" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="192.74320795991272" y="408" width="1" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/pygame/sprite.py:1:&lt;module&gt; 0.00% (3 3 1.3171000000000001e-05 0.004262923)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="192.74320795991272" y="432" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 3.7037000000000005e-05 0.004591362)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="192.74320795991272" y="456" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="194.35522741152903" y="408" width="35.54026823485521" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/pygame/surfarray.py:1:&lt;module&gt; 0.00% (1 1 5.494e-06 0.096629324)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="194.35522741152903" y="432" width="35.54026823485521" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 2.5814e-05 0.09667211)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="194.35522741152903" y="456" width="35.54026823485521" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="234.4837108044728" y="408" width="43.239915138749616" height="23"><g> + <title>prim.py:1:&lt;module&gt; 0.00% (2 2 1.7281000000000003e-05 0.11699074200000001)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="234.4837108044728" y="432" width="43.239915138749616" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 1.33% (1 1 0.20371391500000002 15.362321282000002)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="278.72362594322243" y="408" width="1" height="23"><g> + <title>~:0:&lt;built-in method _imp.create_dynamic&gt; 0.00% (5 4 2.0271000000000003e-05 0.004347503)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method _imp.create_dynamic&gt;</text> +</g></svg> +<svg class="func_g" x="278.72362594322243" y="432" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.05% (34 32 0.007891049 0.009919613)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="281.24248378598526" y="408" width="33.9232980584286" height="23"><g> + <title>~:0:&lt;built-in method builtins.__import__&gt; 0.00% (40 4 0.00020654400000000002 0.09235330900000001)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.__import__&gt;</text> +</g></svg> +<svg class="func_g" x="281.6475957983623" y="432" width="33.51818604605154" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (163 48 0.000293823 0.093013656)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="281.67145903524965" y="456" width="6.8098473072342145" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.00% (123 92 6.730500000000001e-05 0.06663553600000001)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="289.4813063424839" y="456" width="9.639557431260979" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1409:_handle_fromlist 0.00% (40 14 2.5158000000000002e-05 0.09077931800000001)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_handle_fromlist</text> +</g></svg> +<svg class="func_g" x="289.4813063424839" y="480" width="1" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/numpy/__init__.py:1:&lt;module&gt; 0.00% (7 7 0.000172339 0.028498812000000002)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="289.4813063424839" y="504" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 0.000313006 0.09611692100000001)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="289.4813063424839" y="528" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="291.2414489745972" y="480" width="2.866828934528951" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/numpy/_core/__init__.py:1:&lt;module&gt; 0.00% (5 5 2.7752e-05 0.062650758)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="291.2414489745972" y="504" width="2.866828934528951" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 0.00011480500000000001 0.06405421)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="291.2414489745972" y="528" width="2.866828934528951" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="296.9983603453549" y="480" width="1" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/numpy/lib/__init__.py:1:&lt;module&gt; 0.00% (1 1 3.3192000000000003e-05 0.027326021000000002)</title> + <rect height="100%" width="100%" fill="rgb(204, 204, 204)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="296.9983603453549" y="504" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 2.3578e-05 0.027373467000000002)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="296.9983603453549" y="528" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="300.1208637737448" y="456" width="12.70781917168122" height="23"><g> + <title>&lt;frozen importlib._bootstrap_external&gt;:753:exec_module 0.00% (119 4 7.7618e-05 0.116958481)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">exec_module</text> +</g></svg> +<svg class="func_g" x="300.1208637737448" y="480" width="12.70781917168122" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:914:_load_unlocked 0.00% (119 4 0.000306957 0.117603492)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_load_unlocked</text> +</g></svg> +<svg class="func_g" x="300.1208637737448" y="504" width="12.70781917168122" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.00% (157 4 0.0005119370000000001 0.11773269600000001)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="300.1208637737448" y="528" width="12.70781917168122" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1360:_find_and_load 0.01% (165 5 0.000894262 0.11818965000000001)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load</text> +</g></svg> +<svg class="func_g" x="316.69724094272476" y="360" width="337.0984993192393" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1409:_handle_fromlist 0.00% (40 14 2.5158000000000002e-05 0.09077931800000001)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_handle_fromlist</text> +</g></svg> +<svg class="func_g" x="316.69724094272476" y="384" width="54.8952710088435" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/numpy/__init__.py:1:&lt;module&gt; 0.00% (7 7 0.000172339 0.028498812000000002)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="316.69724094272476" y="408" width="54.8952710088435" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 0.000313006 0.09611692100000001)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="316.69724094272476" y="432" width="54.8952710088435" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="372.6301673214868" y="384" width="121.87814303696132" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/numpy/_core/__init__.py:1:&lt;module&gt; 0.00% (5 5 2.7752e-05 0.062650758)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="372.6301673214868" y="408" width="121.87814303696132" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 0.00011480500000000001 0.06405421)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="372.6301673214868" y="432" width="121.87814303696132" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="495.53674164353276" y="384" width="7.1795469568584895" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/numpy/_core/fromnumeric.py:1:&lt;module&gt; 0.00% (2 2 6.677000000000001e-06 0.0041704310000000005)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="495.53674164353276" y="408" width="7.1795469568584895" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 0.000124941 0.005629272)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="495.53674164353276" y="432" width="7.1795469568584895" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="503.7355095298773" y="384" width="22.37257768615614" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/numpy/_core/multiarray.py:1:&lt;module&gt; 0.00% (1 1 4.417e-06 0.011916763)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="503.7355095298773" y="408" width="22.37257768615614" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 0.00012924100000000002 0.016590819)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="503.7355095298773" y="432" width="22.37257768615614" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="527.1080872160334" y="384" width="15.007807891528373" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/numpy/_core/numeric.py:1:&lt;module&gt; 0.00% (2 2 1.2992e-05 0.008161755)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="527.1080872160334" y="408" width="15.007807891528373" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 0.00019085 0.009551466)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="527.1080872160334" y="432" width="15.007807891528373" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="543.1403194172443" y="384" width="11.190715659627019" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/numpy/_core/shape_base.py:1:&lt;module&gt; 0.00% (1 1 5.304e-06 0.006215569000000001)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="543.1403194172443" y="408" width="11.190715659627019" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 3.5039e-05 0.006507716)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="543.1403194172443" y="432" width="11.190715659627019" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="555.5703984111907" y="384" width="52.59505334427094" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/numpy/lib/__init__.py:1:&lt;module&gt; 0.00% (1 1 3.3192000000000003e-05 0.027326021000000002)</title> + <rect height="100%" width="100%" fill="rgb(204, 204, 204)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="555.5703984111907" y="408" width="52.59505334427094" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 2.3578e-05 0.027373467000000002)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="555.5703984111907" y="432" width="52.59505334427094" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="609.2161400923634" y="384" width="3.700286096505545" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/numpy/lib/_npyio_impl.py:1:&lt;module&gt; 0.00% (3 3 5.624000000000001e-06 0.002396492)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="609.2161400923634" y="408" width="3.700286096505545" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 7.2897e-05 0.0037155060000000004)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="609.2161400923634" y="432" width="3.700286096505545" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="613.9802887077459" y="384" width="17.760837312362312" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/numpy/linalg/__init__.py:1:&lt;module&gt; 0.00% (1 1 2.429e-06 0.009565417000000001)</title> + <rect height="100%" width="100%" fill="rgb(225, 225, 225)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="613.9802887077459" y="408" width="17.760837312362312" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 1.9414e-05 0.009608575000000001)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="613.9802887077459" y="432" width="17.760837312362312" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="632.7411260201083" y="384" width="1" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/numpy/linalg/_linalg.py:1:&lt;module&gt; 0.00% (4 4 3.0327000000000003e-05 0.0008101)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="632.7411260201083" y="408" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 0.00012208 0.008913801)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="632.7411260201083" y="432" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="634.3299908136395" y="384" width="19.291813765711947" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/numpy/matrixlib/__init__.py:1:&lt;module&gt; 0.00% (1 1 2.68e-06 0.010346002)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="634.3299908136395" y="408" width="19.291813765711947" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 9.678000000000001e-06 0.010378478)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="634.3299908136395" y="432" width="19.291813765711947" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="654.795740261964" y="360" width="434.6001761189455" height="23"><g> + <title>&lt;frozen importlib._bootstrap_external&gt;:753:exec_module 0.00% (119 4 7.7618e-05 0.116958481)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">exec_module</text> +</g></svg> +<svg class="func_g" x="654.795740261964" y="384" width="434.6001761189455" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:914:_load_unlocked 0.00% (119 4 0.000306957 0.117603492)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_load_unlocked</text> +</g></svg> +<svg class="func_g" x="654.795740261964" y="408" width="434.6001761189455" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.00% (157 4 0.0005119370000000001 0.11773269600000001)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="654.795740261964" y="432" width="434.6001761189455" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1360:_find_and_load 0.01% (165 5 0.000894262 0.11818965000000001)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load</text> +</g></svg> +<svg class="func_g" x="654.795740261964" y="456" width="41.6770129119166" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/numpy/__config__.py:1:&lt;module&gt; 0.00% (1 1 4.335e-06 0.064299175)</title> + <rect height="100%" width="100%" fill="rgb(204, 204, 204)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="654.795740261964" y="480" width="41.6770129119166" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 3.0934e-05 0.06496197000000001)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="654.795740261964" y="504" width="41.6770129119166" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="697.4727531738807" y="456" width="43.03565271811262" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/numpy/__init__.py:1:&lt;module&gt; 0.00% (4 4 1.6159000000000002e-05 0.066346165)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="697.4727531738807" y="480" width="43.03565271811262" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 0.000313006 0.09611692100000001)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="697.4727531738807" y="504" width="43.03565271811262" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="742.2799982649797" y="456" width="1" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/numpy/_core/_add_newdocs.py:1:&lt;module&gt; 0.00% (1 1 5.838000000000001e-06 0.002589165)</title> + <rect height="100%" width="100%" fill="rgb(204, 204, 204)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="742.2799982649797" y="480" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 0.000162726 0.021950519)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="742.2799982649797" y="504" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="743.9984935355035" y="456" width="1.2249810095401932" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/numpy/_core/_internal.py:1:&lt;module&gt; 0.00% (1 1 5.366e-06 0.00335226)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="743.9984935355035" y="480" width="1.2249810095401932" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 3.9396e-05 0.004877391)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="743.9984935355035" y="504" width="1.2249810095401932" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="746.2234745450437" y="456" width="1.4876365046164497" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/numpy/_core/_methods.py:1:&lt;module&gt; 0.00% (2 2 1.0823000000000001e-05 0.003747989)</title> + <rect height="100%" width="100%" fill="rgb(204, 204, 204)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="746.2234745450437" y="480" width="1.4876365046164497" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 4.1242e-05 0.003842242)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="746.2234745450437" y="504" width="1.4876365046164497" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="748.7111110496602" y="456" width="5.739613802858128" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/numpy/_core/einsumfunc.py:1:&lt;module&gt; 0.00% (1 1 5.084e-06 0.010154216)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="748.7111110496602" y="480" width="5.739613802858128" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 2.4352e-05 0.010266055000000001)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="748.7111110496602" y="504" width="5.739613802858128" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="757.3202084204702" y="456" width="1.6586606888000301" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/numpy/_typing/__init__.py:1:&lt;module&gt; 0.00% (6 6 3.071e-05 0.004005662)</title> + <rect height="100%" width="100%" fill="rgb(225, 225, 225)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="757.3202084204702" y="480" width="1.6586606888000301" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 4.3357000000000005e-05 0.004050986)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="757.3202084204702" y="504" width="1.6586606888000301" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="760.8624300113585" y="456" width="8.10767083613202" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/numpy/lib/_arraypad_impl.py:1:&lt;module&gt; 0.00% (1 1 5.510000000000001e-06 0.013722041)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="760.8624300113585" y="480" width="8.107670836132021" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 1.2482e-05 0.013790598000000001)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="760.8624300113585" y="504" width="8.107670836132021" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="771.4160769957782" y="456" width="7.633692389182551" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/numpy/lib/_index_tricks_impl.py:1:&lt;module&gt; 0.00% (2 2 9.643e-06 0.013007923000000001)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="771.4160769957782" y="480" width="7.633692389182551" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 4.9041e-05 0.0133533)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="771.4160769957782" y="504" width="7.633692389182551" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="783.241618823873" y="456" width="1" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/numpy/lib/format.py:1:&lt;module&gt; 0.00% (1 1 5.321e-06 0.002103452)</title> + <rect height="100%" width="100%" fill="rgb(204, 204, 204)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="783.241618823873" y="480" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 1.0005e-05 0.002114618)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="783.241618823873" y="504" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="785.2199613661696" y="456" width="2.993126278697355" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/numpy/linalg/_linalg.py:1:&lt;module&gt; 0.00% (3 3 1.5373e-05 0.00601623)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="785.2199613661696" y="480" width="2.993126278697355" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 0.00012208 0.008913801)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="785.2199613661696" y="504" width="2.993126278697355" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="789.213087644867" y="456" width="5.5233706526042035" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/numpy/matrixlib/defmatrix.py:1:&lt;module&gt; 0.00% (1 1 4.992000000000001e-06 0.009828414)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="789.213087644867" y="480" width="5.5233706526042035" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 1.5094000000000002e-05 0.009910375)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="789.213087644867" y="504" width="5.5233706526042035" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="795.7364582974712" y="456" width="75.02351241312523" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/pygame/__init__.py:1:&lt;module&gt; 0.00% (31 31 0.000110915 0.11454056400000001)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="795.7364582974712" y="480" width="75.02351241312523" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 0.00020390000000000002 0.115190684)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="795.7364582974712" y="504" width="75.02351241312523" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="872.8321916516062" y="456" width="1.8294114180081822" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/pygame/sprite.py:1:&lt;module&gt; 0.00% (3 3 1.3171000000000001e-05 0.004262923)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="872.8321916516062" y="480" width="1.8294114180081822" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 3.7037000000000005e-05 0.004591362)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="872.8321916516062" y="504" width="1.8294114180081822" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="875.6616030696144" y="456" width="63.13536267017069" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/pygame/surfarray.py:1:&lt;module&gt; 0.00% (1 1 5.494e-06 0.096629324)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="875.6616030696144" y="480" width="63.13536267017069" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 2.5814e-05 0.09667211)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="875.6616030696144" y="504" width="63.13536267017069" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="941.2201143711557" y="456" width="1" height="23"><g> + <title>/usr/lib/python3.14/ctypes/__init__.py:1:&lt;module&gt; 0.00% (3 3 1.737e-05 0.002083031)</title> + <rect height="100%" width="100%" fill="rgb(225, 225, 225)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="941.2201143711557" y="480" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 0.00010198500000000001 0.002847098)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="941.2201143711557" y="504" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="942.7845184267511" y="456" width="1" height="23"><g> + <title>/usr/lib/python3.14/pickle.py:1:&lt;module&gt; 0.00% (3 3 1.6268e-05 0.001811787)</title> + <rect height="100%" width="100%" fill="rgb(204, 204, 204)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="942.7845184267511" y="480" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 4.0787e-05 0.0021584490000000002)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="942.7845184267511" y="504" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="946.0949895808661" y="456" width="76.64975844415896" height="23"><g> + <title>prim.py:1:&lt;module&gt; 0.00% (2 2 1.7281000000000003e-05 0.11699074200000001)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="946.0949895808661" y="480" width="76.64975844415896" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 1.33% (1 1 0.20371391500000002 15.362321282000002)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="1023.7447480250252" y="456" width="1.8855493350512842" height="23"><g> + <title>~:0:&lt;built-in method _imp.create_dynamic&gt; 0.00% (5 4 2.0271000000000003e-05 0.004347503)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method _imp.create_dynamic&gt;</text> +</g></svg> +<svg class="func_g" x="1023.7447480250252" y="480" width="1.8855493350512842" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.05% (34 32 0.007891049 0.009919613)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="1026.6302973600764" y="456" width="1" height="23"><g> + <title>~:0:&lt;built-in method _imp.exec_dynamic&gt; 0.00% (6 6 3.1512e-05 0.002313519)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method _imp.exec_dynamic&gt;</text> +</g></svg> +<svg class="func_g" x="1026.6302973600764" y="480" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.04% (34 33 0.006426127 0.009730837)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="1028.1658393049763" y="456" width="60.29726175571031" height="23"><g> + <title>~:0:&lt;built-in method builtins.__import__&gt; 0.00% (40 4 0.00020654400000000002 0.09235330900000001)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.__import__&gt;</text> +</g></svg> +<svg class="func_g" x="1028.8768906215364" y="480" width="59.58621043915042" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (163 48 0.000293823 0.093013656)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="1028.9187752990767" y="504" width="12.70781917168122" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.00% (123 92 6.730500000000001e-05 0.06663553600000001)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="1028.9187752990767" y="528" width="12.70781917168122" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1360:_find_and_load 0.01% (165 5 0.000894262 0.11818965000000001)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load</text> +</g></svg> +<svg class="func_g" x="1042.626594470758" y="504" width="17.67451738772756" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1409:_handle_fromlist 0.00% (40 14 2.5158000000000002e-05 0.09077931800000001)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_handle_fromlist</text> +</g></svg> +<svg class="func_g" x="1042.626594470758" y="528" width="2.087316898620125" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/numpy/__init__.py:1:&lt;module&gt; 0.00% (7 7 0.000172339 0.028498812000000002)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="1042.626594470758" y="552" width="2.087316898620125" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 0.000313006 0.09611692100000001)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="1042.626594470758" y="576" width="2.087316898620125" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="1045.7159912243958" y="528" width="5.787045855973223" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/numpy/_core/__init__.py:1:&lt;module&gt; 0.00% (5 5 2.7752e-05 0.062650758)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="1045.7159912243958" y="552" width="5.787045855973223" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 0.00011480500000000001 0.06405421)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="1045.7159912243958" y="576" width="5.787045855973223" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="1052.9574578313884" y="528" width="1" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/numpy/_core/multiarray.py:1:&lt;module&gt; 0.00% (1 1 4.417e-06 0.011916763)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="1052.9574578313884" y="552" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 0.00012924100000000002 0.016590819)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="1052.9574578313884" y="576" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="1055.8205037652037" y="528" width="1.9602667790274348" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/numpy/lib/__init__.py:1:&lt;module&gt; 0.00% (1 1 3.3192000000000003e-05 0.027326021000000002)</title> + <rect height="100%" width="100%" fill="rgb(204, 204, 204)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="1055.8205037652037" y="552" width="1.9602667790274348" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 2.3578e-05 0.027373467000000002)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="1055.8205037652037" y="576" width="1.9602667790274348" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="1061.3011118584857" y="504" width="23.059920642681007" height="23"><g> + <title>&lt;frozen importlib._bootstrap_external&gt;:753:exec_module 0.00% (119 4 7.7618e-05 0.116958481)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">exec_module</text> +</g></svg> +<svg class="func_g" x="1085.3610325011666" y="504" width="1.0441766196085496" height="23"><g> + <title>&lt;frozen importlib._bootstrap_external&gt;:1051:create_module 0.00% (34 32 1.8533e-05 0.009937015)</title> + <rect height="100%" width="100%" fill="rgb(204, 204, 204)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">create_module</text> +</g></svg> +<svg class="func_g" x="1085.3610325011666" y="528" width="1.0441766196085496" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:809:module_from_spec 0.00% (34 32 5.1475000000000004e-05 0.009994910000000001)</title> + <rect height="100%" width="100%" fill="rgb(225, 225, 225)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">module_from_spec</text> +</g></svg> +<svg class="func_g" x="1085.3610325011666" y="552" width="1.0441766196085496" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:914:_load_unlocked 0.00% (157 150 0.00029744600000000004 0.013285033000000002)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_load_unlocked</text> +</g></svg> +<svg class="func_g" x="1085.3610325011666" y="576" width="1.0441766196085496" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.00% (157 4 0.0005119370000000001 0.11773269600000001)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="1087.4052091207752" y="504" width="1.0578919399117335" height="23"><g> + <title>&lt;frozen importlib._bootstrap_external&gt;:1059:exec_module 0.00% (34 33 0.000273484 0.010003687)</title> + <rect height="100%" width="100%" fill="rgb(225, 225, 225)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">exec_module</text> +</g></svg> +<svg class="func_g" x="1087.4052091207752" y="528" width="1.057891939911733" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:914:_load_unlocked 0.00% (34 33 4.1017000000000004e-05 0.010049164000000001)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_load_unlocked</text> +</g></svg> +<svg class="func_g" x="1087.4052091207752" y="552" width="1.057891939911733" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.00% (157 4 0.0005119370000000001 0.11773269600000001)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="1090.3959163809095" y="360" width="36.0094194716551" height="23"><g> + <title>&lt;frozen importlib._bootstrap_external&gt;:1051:create_module 0.00% (34 32 1.8533e-05 0.009937015)</title> + <rect height="100%" width="100%" fill="rgb(204, 204, 204)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">create_module</text> +</g></svg> +<svg class="func_g" x="1090.3959163809095" y="384" width="36.0094194716551" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:809:module_from_spec 0.00% (34 32 5.1475000000000004e-05 0.009994910000000001)</title> + <rect height="100%" width="100%" fill="rgb(225, 225, 225)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">module_from_spec</text> +</g></svg> +<svg class="func_g" x="1090.3959163809095" y="408" width="36.0094194716551" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:914:_load_unlocked 0.00% (157 150 0.00029744600000000004 0.013285033000000002)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_load_unlocked</text> +</g></svg> +<svg class="func_g" x="1090.3959163809095" y="432" width="36.0094194716551" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.00% (157 4 0.0005119370000000001 0.11773269600000001)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="1090.3959163809095" y="456" width="36.0094194716551" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1360:_find_and_load 0.01% (165 5 0.000894262 0.11818965000000001)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load</text> +</g></svg> +<svg class="func_g" x="1090.3959163809095" y="480" width="2.6259201883864147" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/numpy/__config__.py:1:&lt;module&gt; 0.00% (1 1 4.335e-06 0.064299175)</title> + <rect height="100%" width="100%" fill="rgb(204, 204, 204)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="1090.3959163809095" y="504" width="2.6259201883864147" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 3.0934e-05 0.06496197000000001)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="1090.3959163809095" y="528" width="2.6259201883864147" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="1094.021836569296" y="480" width="2.7413528104445533" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/numpy/__init__.py:1:&lt;module&gt; 0.00% (4 4 1.6159000000000002e-05 0.066346165)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="1094.021836569296" y="504" width="2.7413528104445533" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 0.000313006 0.09611692100000001)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="1094.021836569296" y="528" width="2.7413528104445533" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="1102.370507853499" y="480" width="5.459102210825664" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/pygame/__init__.py:1:&lt;module&gt; 0.00% (31 31 0.000110915 0.11454056400000001)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="1102.370507853499" y="504" width="5.459102210825664" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 0.00020390000000000002 0.115190684)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="1102.370507853499" y="528" width="5.459102210825664" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="1109.1611001704252" y="480" width="4.449062397483823" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/pygame/surfarray.py:1:&lt;module&gt; 0.00% (1 1 5.494e-06 0.096629324)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="1109.1611001704252" y="504" width="4.449062397483823" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 2.5814e-05 0.09667211)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="1109.1611001704252" y="528" width="4.449062397483823" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="1115.1452546522462" y="480" width="5.597271166731246" height="23"><g> + <title>prim.py:1:&lt;module&gt; 0.00% (2 2 1.7281000000000003e-05 0.11699074200000001)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="1115.1452546522462" y="504" width="5.597271166731246" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 1.33% (1 1 0.20371391500000002 15.362321282000002)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="1122.1181501430076" y="480" width="4.207931945742521" height="23"><g> + <title>~:0:&lt;built-in method builtins.__import__&gt; 0.00% (40 4 0.00020654400000000002 0.09235330900000001)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.__import__&gt;</text> +</g></svg> +<svg class="func_g" x="1122.1785624152774" y="504" width="4.1475196734727975" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (163 48 0.000293823 0.093013656)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="1123.346763406151" y="528" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1409:_handle_fromlist 0.00% (40 14 2.5158000000000002e-05 0.09077931800000001)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_handle_fromlist</text> +</g></svg> +<svg class="func_g" x="1124.933385922218" y="528" width="1.0441766196085496" height="23"><g> + <title>&lt;frozen importlib._bootstrap_external&gt;:753:exec_module 0.00% (119 4 7.7618e-05 0.116958481)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">exec_module</text> +</g></svg> +<svg class="func_g" x="1124.933385922218" y="552" width="1.0441766196085496" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:914:_load_unlocked 0.00% (119 4 0.000306957 0.117603492)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_load_unlocked</text> +</g></svg> +<svg class="func_g" x="1124.933385922218" y="576" width="1.0441766196085496" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.00% (157 4 0.0005119370000000001 0.11773269600000001)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="1127.4053358525646" y="360" width="36.25773267386061" height="23"><g> + <title>&lt;frozen importlib._bootstrap_external&gt;:1059:exec_module 0.00% (34 33 0.000273484 0.010003687)</title> + <rect height="100%" width="100%" fill="rgb(225, 225, 225)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">exec_module</text> +</g></svg> +<svg class="func_g" x="1127.4053358525646" y="384" width="36.25773267386061" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:914:_load_unlocked 0.00% (34 33 4.1017000000000004e-05 0.010049164000000001)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_load_unlocked</text> +</g></svg> +<svg class="func_g" x="1127.4053358525646" y="408" width="36.25773267386061" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.00% (157 4 0.0005119370000000001 0.11773269600000001)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="1127.4053358525646" y="432" width="36.25773267386061" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1360:_find_and_load 0.01% (165 5 0.000894262 0.11818965000000001)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load</text> +</g></svg> +<svg class="func_g" x="1127.4053358525646" y="456" width="2.650248153152504" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/numpy/__config__.py:1:&lt;module&gt; 0.00% (1 1 4.335e-06 0.064299175)</title> + <rect height="100%" width="100%" fill="rgb(204, 204, 204)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="1127.4053358525646" y="480" width="2.650248153152504" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 3.0934e-05 0.06496197000000001)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="1127.4053358525646" y="504" width="2.650248153152504" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="1131.0555840057173" y="456" width="2.7664552657168824" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/numpy/__init__.py:1:&lt;module&gt; 0.00% (4 4 1.6159000000000002e-05 0.066346165)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="1131.0555840057173" y="480" width="2.7664552657168824" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 0.000313006 0.09611692100000001)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="1131.0555840057173" y="504" width="2.7664552657168824" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="1139.4602703620376" y="456" width="5.502439295714856" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/pygame/__init__.py:1:&lt;module&gt; 0.00% (31 31 0.000110915 0.11454056400000001)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="1139.4602703620376" y="480" width="5.502439295714856" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 0.00020390000000000002 0.115190684)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="1139.4602703620376" y="504" width="5.502439295714856" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="1146.2964238833051" y="456" width="4.485622661120846" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/pygame/surfarray.py:1:&lt;module&gt; 0.00% (1 1 5.494e-06 0.096629324)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="1146.2964238833051" y="480" width="4.485622661120846" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 2.5814e-05 0.09667211)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="1146.2964238833051" y="504" width="4.485622661120846" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="1152.3207288074482" y="456" width="5.6415352906385055" height="23"><g> + <title>prim.py:1:&lt;module&gt; 0.00% (2 2 1.7281000000000003e-05 0.11699074200000001)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="1152.3207288074482" y="480" width="5.6415352906385055" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 1.33% (1 1 0.20371391500000002 15.362321282000002)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="1159.340408658318" y="456" width="4.242874354371927" height="23"><g> + <title>~:0:&lt;built-in method builtins.__import__&gt; 0.00% (40 4 0.00020654400000000002 0.09235330900000001)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.__import__&gt;</text> +</g></svg> +<svg class="func_g" x="1159.4012262642837" y="480" width="4.182056748406242" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (163 48 0.000293823 0.093013656)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="1160.5772652524292" y="504" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1409:_handle_fromlist 0.00% (40 14 2.5158000000000002e-05 0.09077931800000001)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_handle_fromlist</text> +</g></svg> +<svg class="func_g" x="1162.1745331480586" y="504" width="1.0578919399117335" height="23"><g> + <title>&lt;frozen importlib._bootstrap_external&gt;:753:exec_module 0.00% (119 4 7.7618e-05 0.116958481)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">exec_module</text> +</g></svg> +<svg class="func_g" x="1162.1745331480586" y="528" width="1.0578919399117335" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:914:_load_unlocked 0.00% (119 4 0.000306957 0.117603492)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_load_unlocked</text> +</g></svg> +<svg class="func_g" x="1162.1745331480586" y="552" width="1.0578919399117335" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.00% (157 4 0.0005119370000000001 0.11773269600000001)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="1165.7904905036407" y="264" width="23.100359957433028" height="23"><g> + <title>~:0:&lt;built-in method pygame.draw.line&gt; 2.01% (27499 27499 0.308532185 0.308532185)</title> + <rect height="100%" width="100%" fill="rgb(166, 166, 255)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method pygame.draw.line&gt;</text> +</g></svg> +<svg class="func_g" x="1165.7904905036407" y="288" width="23.100359957433028" height="23"><g> + <title>prim.py:35:draw_edge 2.01% (27499 27499 0.308532185 0.308532185)</title> + <rect height="100%" width="100%" fill="rgb(204, 204, 204)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">draw_edge</text> +</g></svg> +<svg class="func_g" x="1165.7904905036407" y="312" width="23.100359957433028" height="23"><g> + <title>prim.py:1:&lt;module&gt; 0.16% (27499 27499 0.024124220000000002 0.33265640500000004)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="1165.7904905036407" y="336" width="23.100359957433028" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 1.33% (1 1 0.20371391500000002 15.362321282000002)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="1165.7904905036407" y="360" width="23.100359957433028" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="1165.8071516514185" y="384" width="4.452781645762748" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.00% (123 92 6.730500000000001e-05 0.06663553600000001)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="1165.8071516514185" y="408" width="4.452781645762748" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1360:_find_and_load 0.01% (165 5 0.000894262 0.11818965000000001)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load</text> +</g></svg> +<svg class="func_g" x="1171.2599332971813" y="384" width="6.428465781460208" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1409:_handle_fromlist 0.00% (40 14 2.5158000000000002e-05 0.09077931800000001)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_handle_fromlist</text> +</g></svg> +<svg class="func_g" x="1171.2599332971813" y="408" width="1" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/numpy/__init__.py:1:&lt;module&gt; 0.00% (7 7 0.000172339 0.028498812000000002)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="1171.2599332971813" y="432" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 0.000313006 0.09611692100000001)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="1171.2599332971813" y="456" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="1172.4888527703472" y="408" width="1.6997933521661683" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/numpy/_core/__init__.py:1:&lt;module&gt; 0.00% (5 5 2.7752e-05 0.062650758)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="1172.4888527703472" y="432" width="1.6997933521661683" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 0.00011480500000000001 0.06405421)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="1172.4888527703472" y="456" width="1.6997933521661683" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="1178.6883990786414" y="384" width="8.570705014109752" height="23"><g> + <title>&lt;frozen importlib._bootstrap_external&gt;:753:exec_module 0.00% (119 4 7.7618e-05 0.116958481)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">exec_module</text> +</g></svg> +<svg class="func_g" x="1178.6883990786414" y="408" width="8.570705014109752" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:914:_load_unlocked 0.00% (119 4 0.000306957 0.117603492)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_load_unlocked</text> +</g></svg> +<svg class="func_g" x="1178.6883990786414" y="432" width="8.570705014109752" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.00% (157 4 0.0005119370000000001 0.11773269600000001)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="1178.6883990786414" y="456" width="8.570705014109752" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1360:_find_and_load 0.01% (165 5 0.000894262 0.11818965000000001)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load</text> +</g></svg> +<svg class="func_g" x="1181.7850508036545" y="480" width="1" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/pygame/__init__.py:1:&lt;module&gt; 0.00% (31 31 0.000110915 0.11454056400000001)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="1181.7850508036545" y="504" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 0.00020390000000000002 0.115190684)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="1181.7850508036545" y="528" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="1183.5411106625818" y="480" width="1" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/pygame/surfarray.py:1:&lt;module&gt; 0.00% (1 1 5.494e-06 0.096629324)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="1183.5411106625818" y="504" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 2.5814e-05 0.09667211)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="1183.5411106625818" y="528" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="1185.0886241908129" y="480" width="1" height="23"><g> + <title>prim.py:1:&lt;module&gt; 0.00% (2 2 1.7281000000000003e-05 0.11699074200000001)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="1185.0886241908129" y="504" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 1.33% (1 1 0.20371391500000002 15.362321282000002)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="1186.8918279910617" y="480" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.__import__&gt; 0.00% (40 4 0.00020654400000000002 0.09235330900000001)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.__import__&gt;</text> +</g></svg> +<svg class="func_g" x="1186.9074507175292" y="504" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (163 48 0.000293823 0.093013656)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="1189.8908504610738" y="264" width="5.59977938242426" height="23"><g> + <title>~:0:&lt;built-in method pygame.event.get&gt; 0.55% (2500 2500 0.084490205 0.084490205)</title> + <rect height="100%" width="100%" fill="rgb(166, 166, 255)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method pygame.event.get&gt;</text> +</g></svg> +<svg class="func_g" x="1189.8908504610738" y="288" width="5.59977938242426" height="23"><g> + <title>prim.py:1:&lt;module&gt; 0.55% (2500 2500 0.084490205 0.084490205)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="1189.8908504610738" y="312" width="5.59977938242426" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 1.33% (1 1 0.20371391500000002 15.362321282000002)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="1189.8908504610738" y="336" width="5.59977938242426" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (119 4 0.000517973 0.11695562300000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="1189.8954130443626" y="360" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.00% (123 92 6.730500000000001e-05 0.06663553600000001)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="1189.8954130443626" y="384" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1360:_find_and_load 0.01% (165 5 0.000894262 0.11818965000000001)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load</text> +</g></svg> +<svg class="func_g" x="1191.388633724308" y="360" width="1.0342532391266022" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1409:_handle_fromlist 0.00% (40 14 2.5158000000000002e-05 0.09077931800000001)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_handle_fromlist</text> +</g></svg> +<svg class="func_g" x="1193.4228869634346" y="360" width="1.6208961915485767" height="23"><g> + <title>&lt;frozen importlib._bootstrap_external&gt;:753:exec_module 0.00% (119 4 7.7618e-05 0.116958481)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">exec_module</text> +</g></svg> +<svg class="func_g" x="1193.4228869634346" y="384" width="1.6208961915485767" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:914:_load_unlocked 0.00% (119 4 0.000306957 0.117603492)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_load_unlocked</text> +</g></svg> +<svg class="func_g" x="1193.4228869634346" y="408" width="1.6208961915485767" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.00% (157 4 0.0005119370000000001 0.11773269600000001)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="1193.4228869634346" y="432" width="1.6208961915485767" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1360:_find_and_load 0.01% (165 5 0.000894262 0.11818965000000001)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load</text> +</g></svg> +</svg> diff --git a/posts/site/images/rlib-flamegraph.svg b/posts/site/images/rlib-flamegraph.svg @@ -0,0 +1,2728 @@ +<?xml version="1.0" standalone="no"?> +<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> +<svg version="1.1" width="1200" height="696" + xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> +<style type="text/css"> + .func_g:hover { stroke:black; stroke-width:0.5; cursor:pointer; } +</style> +<svg class="func_g" x="0.0" y="240" width="1198.995738159133" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 100.00% (1 31 0.002143087 7.795195327)</title> + <rect height="100%" width="100%" fill="rgb(255, 215, 125)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="0.47115326454031137" y="216" width="8.703875797766724" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/pyray/__init__.py:1:&lt;module&gt; 0.81% (1 1 0.0030113940665886085 0.06303656327028419)</title> + <rect height="100%" width="100%" fill="rgb(99, 206, 42)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="0.47115326454031137" y="192" width="1.813340831068662" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/pyray/__init__.py:31:_underscore 0.23% (1841 1841 0.002622962333851722 0.018275515989121364)</title> + <rect height="100%" width="100%" fill="rgb(255, 215, 125)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_underscore</text> +</g></svg> +<svg class="func_g" x="0.47115326454031137" y="168" width="1.3170963438470769" height="23"><g> + <title>/usr/lib/python3.14/re/__init__.py:183:sub 0.19% (7362 7362 0.005355561562013728 0.015051902283814833)</title> + <rect height="100%" width="100%" fill="rgb(255, 115, 64)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">sub</text> +</g></svg> +<svg class="func_g" x="4.652205675745309" y="192" width="3.893951117758518" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1360:_find_and_load 0.41% (3 3 1.8045087967374867e-05 0.0317912003106286)</title> + <rect height="100%" width="100%" fill="rgb(255, 165, 95)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load</text> +</g></svg> +<svg class="func_g" x="4.708693535286612" y="168" width="3.8335652692477513" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.40% (17 1 4.3579806316609256e-05 0.03139893268070337)</title> + <rect height="100%" width="100%" fill="rgb(255, 165, 95)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="4.71667906204224" y="144" width="3.6509831295662734" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:914:_load_unlocked 0.39% (16 1 4.176505753817709e-05 0.03021287560001566)</title> + <rect height="100%" width="100%" fill="rgb(255, 90, 49)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_load_unlocked</text> +</g></svg> +<svg class="func_g" x="4.85294281122057" y="120" width="3.502708599384137" height="23"><g> + <title>&lt;frozen importlib._bootstrap_external&gt;:753:exec_module 0.38% (11 1 3.3961106949862746e-05 0.029249681408541266)</title> + <rect height="100%" width="100%" fill="rgb(255, 165, 95)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">exec_module</text> +</g></svg> +<svg class="func_g" x="4.85294281122057" y="96" width="3.2464531725716474" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.35% (11 1 5.024569196016465e-06 0.027585041241842433)</title> + <rect height="100%" width="100%" fill="rgb(255, 140, 79)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="5.000839257235756" y="72" width="3.097783242202527" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.34% (10 1 3.834485040853057e-05 0.026619278523170926)</title> + <rect height="100%" width="100%" fill="rgb(255, 215, 125)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="5.066413705222795" y="48" width="3.026305971368802" height="23"><g> + <title>prim-rlib.py:1:&lt;module&gt; 0.34% (0 0 0.0009172627203500277 0.026154960801139254)</title> + <rect height="100%" width="100%" fill="rgb(255, 240, 141)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="5.066413705222795" y="24" width="2.4665950902954745" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/pyray/__init__.py:47:wrapped_func 0.29% (42 42 0.00022827298516007555 0.022519068184297917)</title> + <rect height="100%" width="100%" fill="rgb(255, 115, 64)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">wrapped_func</text> +</g></svg> +<svg class="func_g" x="5.145283226775242" y="0" width="2.241232518525801" height="23"><g> + <title>~:0:&lt;built-in method raylib._raylib_cffi.EndDrawing&gt; 0.27% (8 8 0.0210551085963792 0.0210551085963792)</title> + <rect height="100%" width="100%" fill="rgb(255, 90, 49)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method raylib._raylib_cffi.EndDrawing&gt;</text> +</g></svg> +<svg class="func_g" x="10.175029062307036" y="216" width="1.592664880631796" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/raylib/__init__.py:1:&lt;module&gt; 0.22% (1 1 0.0011369290754115304 0.016842000783254343)</title> + <rect height="100%" width="100%" fill="rgb(71, 230, 126)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="10.200266871166093" y="192" width="1.3924077184593573" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1360:_find_and_load 0.20% (6 6 2.0722733488918392e-05 0.01554112641751733)</title> + <rect height="100%" width="100%" fill="rgb(255, 165, 95)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load</text> +</g></svg> +<svg class="func_g" x="10.227859799132604" y="168" width="1.3610775727529787" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.20% (8 1 2.1287661919806524e-05 0.015337605190200937)</title> + <rect height="100%" width="100%" fill="rgb(255, 165, 95)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="10.231760532251757" y="144" width="1.2718906949156428" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:914:_load_unlocked 0.19% (8 1 2.040120184277028e-05 0.014758245521462574)</title> + <rect height="100%" width="100%" fill="rgb(255, 90, 49)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_load_unlocked</text> +</g></svg> +<svg class="func_g" x="10.298322017251476" y="120" width="1.1994622392473473" height="23"><g> + <title>&lt;frozen importlib._bootstrap_external&gt;:753:exec_module 0.18% (5 1 1.658916420873436e-05 0.014287748884504976)</title> + <rect height="100%" width="100%" fill="rgb(255, 165, 95)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">exec_module</text> +</g></svg> +<svg class="func_g" x="10.298322017251476" y="96" width="1.0742877753805598" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.17% (5 1 2.454378286135411e-06 0.013474613166797354)</title> + <rect height="100%" width="100%" fill="rgb(255, 140, 79)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="10.370565788117252" y="72" width="1.0016661764604922" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.17% (5 1 1.8730514907113158e-05 0.0130028618675724)</title> + <rect height="100%" width="100%" fill="rgb(255, 215, 125)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="10.402597290716987" y="48" width="1" height="23"><g> + <title>prim-rlib.py:1:&lt;module&gt; 0.16% (0 0 0.0004480602447058485 0.012776054097520015)</title> + <rect height="100%" width="100%" fill="rgb(255, 240, 141)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="10.402597290716987" y="24" width="1" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/pyray/__init__.py:47:wrapped_func 0.14% (20 20 0.00011150573038826636 0.011000010114173071)</title> + <rect height="100%" width="100%" fill="rgb(255, 115, 64)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">wrapped_func</text> +</g></svg> +<svg class="func_g" x="10.441123109266703" y="0" width="1" height="23"><g> + <title>~:0:&lt;built-in method raylib._raylib_cffi.EndDrawing&gt; 0.13% (4 4 0.01028490191599837 0.01028490191599837)</title> + <rect height="100%" width="100%" fill="rgb(255, 90, 49)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method raylib._raylib_cffi.EndDrawing&gt;</text> +</g></svg> +<svg class="func_g" x="12.775421063696845" y="216" width="1.1708964691003283" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/raylib/enums.py:1:&lt;module&gt; 0.18% (1 1 2.1730047601357982e-05 0.014102185093833687)</title> + <rect height="100%" width="100%" fill="rgb(44, 255, 210)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="12.775421063696845" y="192" width="1.167551336179629" height="23"><g> + <title>~:0:&lt;built-in method builtins.__build_class__&gt; 0.18% (39 39 0.00012876209057400423 0.014080455046232329)</title> + <rect height="100%" width="100%" fill="rgb(255, 165, 95)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.__build_class__&gt;</text> +</g></svg> +<svg class="func_g" x="15.787019094489617" y="216" width="1" height="23"><g> + <title>/usr/lib/python3.14/logging/__init__.py:1:&lt;module&gt; 0.15% (1 1 5.3774244098154555e-05 0.011347946318947612)</title> + <rect height="100%" width="100%" fill="rgb(99, 206, 42)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="15.794305850986268" y="192" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1360:_find_and_load 0.12% (4 4 1.4493912238950135e-05 0.00952142613492502)</title> + <rect height="100%" width="100%" fill="rgb(255, 165, 95)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load</text> +</g></svg> +<svg class="func_g" x="15.811207737131989" y="168" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.12% (5 0 1.3039632420084503e-05 0.009394960077720841)</title> + <rect height="100%" width="100%" fill="rgb(255, 165, 95)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="15.813597108319591" y="144" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:914:_load_unlocked 0.12% (5 0 1.249663650051489e-05 0.009040076711579952)</title> + <rect height="100%" width="100%" fill="rgb(255, 90, 49)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_load_unlocked</text> +</g></svg> +<svg class="func_g" x="15.854368955458133" y="120" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap_external&gt;:753:exec_module 0.11% (3 0 1.0161595211968874e-05 0.008751876756886722)</title> + <rect height="100%" width="100%" fill="rgb(255, 165, 95)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">exec_module</text> +</g></svg> +<svg class="func_g" x="15.854368955458133" y="96" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.11% (3 0 1.5034150200058055e-06 0.008253795243449885)</title> + <rect height="100%" width="100%" fill="rgb(255, 140, 79)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="15.89862145346751" y="72" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.10% (3 0 1.147326701954165e-05 0.007964826752745548)</title> + <rect height="100%" width="100%" fill="rgb(255, 215, 125)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="15.918242162464905" y="48" width="1" height="23"><g> + <title>prim-rlib.py:1:&lt;module&gt; 0.10% (0 0 0.00027445667424760004 0.007825896983819143)</title> + <rect height="100%" width="100%" fill="rgb(255, 240, 141)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="17.887911274914234" y="216" width="1" height="23"><g> + <title>/usr/lib/python3.14/traceback.py:1:&lt;module&gt; 0.10% (1 1 3.140970665058218e-05 0.008084526983211522)</title> + <rect height="100%" width="100%" fill="rgb(99, 206, 42)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="17.90428213433741" y="192" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1360:_find_and_load 0.10% (5 5 1.8024430158428357e-05 0.007884084263003488)</title> + <rect height="100%" width="100%" fill="rgb(255, 165, 95)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load</text> +</g></svg> +<svg class="func_g" x="19.225250138441037" y="216" width="1179.4405802815495" height="23"><g> + <title>prim-rlib.py:1:&lt;module&gt; 98.37% (1 1 0.26892495145184264 7.668164646424473)</title> + <rect height="100%" width="100%" fill="rgb(44, 255, 210)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="19.225250138441037" y="192" width="1015.3434048700443" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/pyray/__init__.py:47:wrapped_func 84.70% (12297 12297 0.06692553844171789 6.602186248114502)</title> + <rect height="100%" width="100%" fill="rgb(255, 115, 64)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">wrapped_func</text> +</g></svg> +<svg class="func_g" x="20.18530155469357" y="168" width="5.876100390476613" height="23"><g> + <title>~:0:&lt;built-in method raylib._raylib_cffi.BeginTextureMode&gt; 0.57% (2432 2432 0.04466727999722123 0.04466727999722123)</title> + <rect height="100%" width="100%" fill="rgb(255, 190, 110)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method raylib._raylib_cffi.BeginTextureMode&gt;</text> +</g></svg> +<svg class="func_g" x="27.06293589819859" y="168" width="1.0622274360566073" height="23"><g> + <title>~:0:&lt;built-in method raylib._raylib_cffi.CloseWindow&gt; 0.17% (1 1 0.013396268971271854 0.013396268971271854)</title> + <rect height="100%" width="100%" fill="rgb(255, 190, 110)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method raylib._raylib_cffi.CloseWindow&gt;</text> +</g></svg> +<svg class="func_g" x="29.125163334255195" y="168" width="5.356900336872382" height="23"><g> + <title>~:0:&lt;built-in method raylib._raylib_cffi.DrawCircle&gt; 0.53% (4862 4862 0.04129454649248179 0.04129454649248179)</title> + <rect height="100%" width="100%" fill="rgb(255, 115, 64)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method raylib._raylib_cffi.DrawCircle&gt;</text> +</g></svg> +<svg class="func_g" x="35.48206367112758" y="168" width="3.9703620660866132" height="23"><g> + <title>~:0:&lt;built-in method raylib._raylib_cffi.DrawLine&gt; 0.41% (26746 26746 0.032287567296275195 0.032287567296275195)</title> + <rect height="100%" width="100%" fill="rgb(255, 240, 141)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method raylib._raylib_cffi.DrawLine&gt;</text> +</g></svg> +<svg class="func_g" x="40.45242573721419" y="168" width="1" height="23"><g> + <title>~:0:&lt;built-in method raylib._raylib_cffi.DrawTexturePro&gt; 0.16% (2431 2431 0.012316135807039419 0.012316135807039419)</title> + <rect height="100%" width="100%" fill="rgb(255, 165, 95)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method raylib._raylib_cffi.DrawTexturePro&gt;</text> +</g></svg> +<svg class="func_g" x="42.34837700707471" y="168" width="949.2711473503069" height="23"><g> + <title>~:0:&lt;built-in method raylib._raylib_cffi.EndDrawing&gt; 79.19% (2431 2431 6.17297959622063 6.17297959622063)</title> + <rect height="100%" width="100%" fill="rgb(255, 90, 49)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method raylib._raylib_cffi.EndDrawing&gt;</text> +</g></svg> +<svg class="func_g" x="992.6195243573817" y="168" width="19.09059126822256" height="23"><g> + <title>~:0:&lt;built-in method raylib._raylib_cffi.EndTextureMode&gt; 1.67% (2431 2431 0.13050886614894563 0.13050886614894563)</title> + <rect height="100%" width="100%" fill="rgb(255, 215, 125)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method raylib._raylib_cffi.EndTextureMode&gt;</text> +</g></svg> +<svg class="func_g" x="1012.7101156256042" y="168" width="10.740990721088497" height="23"><g> + <title>~:0:&lt;built-in method raylib._raylib_cffi.InitWindow&gt; 0.98% (1 1 0.07626970087725628 0.07626970087725628)</title> + <rect height="100%" width="100%" fill="rgb(255, 165, 95)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method raylib._raylib_cffi.InitWindow&gt;</text> +</g></svg> +<svg class="func_g" x="1035.5686550084854" y="192" width="26.858271355107146" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/pyray/__init__.py:117:func 2.32% (7375 7375 0.11301125591711372 0.1809678649515597)</title> + <rect height="100%" width="100%" fill="rgb(255, 190, 110)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">func</text> +</g></svg> +<svg class="func_g" x="1035.5686550084854" y="168" width="2.227015050669651" height="23"><g> + <title>/usr/lib/python3.14/weakref.py:334:__setitem__ 0.27% (7375 7375 0.020962751652542008 0.020962751652542008)</title> + <rect height="100%" width="100%" fill="rgb(255, 190, 110)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">__setitem__</text> +</g></svg> +<svg class="func_g" x="1038.7956700591549" y="168" width="1" height="23"><g> + <title>~:0:&lt;method 'append' of 'list' objects&gt; 0.16% (24583 24583 0.012278656357287586 0.012278656357287586)</title> + <rect height="100%" width="100%" fill="rgb(255, 115, 64)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;method 'append' of 'list' objects&gt;</text> +</g></svg> +<svg class="func_g" x="1040.6858517263202" y="168" width="3.0943535014861707" height="23"><g> + <title>~:0:&lt;method 'new' of '_cffi_backend.FFI' objects&gt; 0.34% (7375 7375 0.026596998861706477 0.026596998861706477)</title> + <rect height="100%" width="100%" fill="rgb(255, 115, 64)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;method 'new' of '_cffi_backend.FFI' objects&gt;</text> +</g></svg> +<svg class="func_g" x="1044.7802052278064" y="168" width="1" height="23"><g> + <title>~:0:&lt;method 'typeof' of '_cffi_backend.FFI' objects&gt; 0.10% (7375 7375 0.008118202162909904 0.008118202162909904)</title> + <rect height="100%" width="100%" fill="rgb(255, 190, 110)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;method 'typeof' of '_cffi_backend.FFI' objects&gt;</text> +</g></svg> +<svg class="func_g" x="1063.4269263635924" y="192" width="9.827326498907244" height="23"><g> + <title>/usr/lib/python3.14/random.py:347:choice 0.90% (49204 49204 0.024390974069527456 0.07033452056893262)</title> + <rect height="100%" width="100%" fill="rgb(255, 115, 64)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">choice</text> +</g></svg> +<svg class="func_g" x="1063.4269263635924" y="168" width="4.810669727191822" height="23"><g> + <title>/usr/lib/python3.14/random.py:245:_randbelow_with_getrandbits 0.48% (49204 49204 0.022678615823679617 0.037746221977114545)</title> + <rect height="100%" width="100%" fill="rgb(255, 140, 79)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_randbelow_with_getrandbits</text> +</g></svg> +<svg class="func_g" x="1064.2849723410482" y="144" width="1" height="23"><g> + <title>~:0:&lt;method 'getrandbits' of '_random.Random' objects&gt; 0.12% (81024 81024 0.009493723029422554 0.009493723029422554)</title> + <rect height="100%" width="100%" fill="rgb(255, 140, 79)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;method 'getrandbits' of '_random.Random' objects&gt;</text> +</g></svg> +<svg class="func_g" x="1069.2375960907843" y="168" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.len&gt; 0.11% (98408 98408 0.008197324522290618 0.008197324522290618)</title> + <rect height="100%" width="100%" fill="rgb(255, 140, 79)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.len&gt;</text> +</g></svg> +<svg class="func_g" x="1074.2542528624997" y="192" width="1" height="23"><g> + <title>/usr/lib/python3.14/weakref.py:311:remove 0.16% (7373 7373 0.012772859022946193 0.012772859022946193)</title> + <rect height="100%" width="100%" fill="rgb(255, 90, 49)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">remove</text> +</g></svg> +<svg class="func_g" x="1076.2205123016383" y="192" width="8.995553973771441" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1360:_find_and_load 0.83% (3 3 1.7769650514754665e-05 0.06493131029502598)</title> + <rect height="100%" width="100%" fill="rgb(255, 165, 95)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load</text> +</g></svg> +<svg class="func_g" x="1076.335918749017" y="168" width="8.875123618174042" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.82% (34 3 8.903489467094231e-05 0.0641489923956125)</title> + <rect height="100%" width="100%" fill="rgb(255, 165, 95)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="1076.3522334276188" y="144" width="8.502102649305257" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:914:_load_unlocked 0.79% (33 3 8.532730668470684e-05 0.06172584102854209)</title> + <rect height="100%" width="100%" fill="rgb(255, 90, 49)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_load_unlocked</text> +</g></svg> +<svg class="func_g" x="1076.6306244894656" y="120" width="8.199173189700971" height="23"><g> + <title>&lt;frozen importlib._bootstrap_external&gt;:753:exec_module 0.77% (23 3 6.93835938191682e-05 0.05975800544977539)</title> + <rect height="100%" width="100%" fill="rgb(255, 165, 95)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">exec_module</text> +</g></svg> +<svg class="func_g" x="1076.6306244894656" y="96" width="7.6756354123792825" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.72% (22 3 1.0265350559019983e-05 0.05635709400858424)</title> + <rect height="100%" width="100%" fill="rgb(255, 140, 79)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="1076.9327815114013" y="72" width="7.371898137941095" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.70% (21 3 7.833971754012581e-05 0.05438401084916531)</title> + <rect height="100%" width="100%" fill="rgb(255, 215, 125)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="1077.0667521405323" y="48" width="7.225867858829421" height="23"><g> + <title>prim-rlib.py:1:&lt;module&gt; 0.69% (0 0 0.0018739961600247193 0.0534353953556819)</title> + <rect height="100%" width="100%" fill="rgb(255, 240, 141)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="1086.2594217118333" y="192" width="9.071280726364776" height="23"><g> + <title>prim-rlib.py:20:draw_vertex 0.84% (4918 4918 0.011763855888698927 0.06542323273205898)</title> + <rect height="100%" width="100%" fill="rgb(255, 90, 49)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">draw_vertex</text> +</g></svg> +<svg class="func_g" x="1086.2594217118333" y="168" width="7.260347665859962" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/pyray/__init__.py:47:wrapped_func 0.69% (4918 4918 0.011894590308174732 0.05365937684336006)</title> + <rect height="100%" width="100%" fill="rgb(255, 115, 64)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">wrapped_func</text> +</g></svg> +<svg class="func_g" x="1086.4071943104482" y="144" width="5.072882687126702" height="23"><g> + <title>~:0:&lt;built-in method raylib._raylib_cffi.EndDrawing&gt; 0.51% (16 16 0.03944956239322205 0.03944956239322205)</title> + <rect height="100%" width="100%" fill="rgb(255, 90, 49)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method raylib._raylib_cffi.EndDrawing&gt;</text> +</g></svg> +<svg class="func_g" x="1096.330702438198" y="192" width="1" height="23"><g> + <title>prim-rlib.py:26:__init__ 0.16% (24593 24593 0.00989479734123471 0.012512344378026879)</title> + <rect height="100%" width="100%" fill="rgb(255, 190, 110)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">__init__</text> +</g></svg> +<svg class="func_g" x="1098.2568581402886" y="192" width="13.875564867168356" height="23"><g> + <title>prim-rlib.py:30:draw_edge 1.24% (27051 27051 0.037270694954448784 0.09663195464087457)</title> + <rect height="100%" width="100%" fill="rgb(255, 215, 125)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">draw_edge</text> +</g></svg> +<svg class="func_g" x="1098.2568581402886" y="168" width="8.138097975395157" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/pyray/__init__.py:47:wrapped_func 0.76% (27051 27051 0.026706018972863926 0.059361259686425784)</title> + <rect height="100%" width="100%" fill="rgb(255, 115, 64)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">wrapped_func</text> +</g></svg> +<svg class="func_g" x="1098.3723992498924" y="144" width="3.748293057987368" height="23"><g> + <title>~:0:&lt;built-in method raylib._raylib_cffi.EndDrawing&gt; 0.40% (12 12 0.030845002761119154 0.030845002761119154)</title> + <rect height="100%" width="100%" fill="rgb(255, 90, 49)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method raylib._raylib_cffi.EndDrawing&gt;</text> +</g></svg> +<svg class="func_g" x="1113.1324230074572" y="192" width="28.543763142541774" height="23"><g> + <title>~:0:&lt;built-in method _heapq.heappop&gt; 2.46% (24593 24593 0.11963696778072988 0.19191685192484922)</title> + <rect height="100%" width="100%" fill="rgb(255, 140, 79)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method _heapq.heappop&gt;</text> +</g></svg> +<svg class="func_g" x="1113.1324230074572" y="168" width="10.126796608566766" height="23"><g> + <title>prim-rlib.py:33:__lt__ 0.93% (326959 326959 0.07227988414411934 0.07227988414411934)</title> + <rect height="100%" width="100%" fill="rgb(255, 115, 64)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">__lt__</text> +</g></svg> +<svg class="func_g" x="1142.6761861499988" y="192" width="11.705074841560972" height="23"><g> + <title>~:0:&lt;built-in method _heapq.heappush&gt; 1.06% (24593 24593 0.05310848029660551 0.08253240981176528)</title> + <rect height="100%" width="100%" fill="rgb(255, 240, 141)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method _heapq.heappush&gt;</text> +</g></svg> +<svg class="func_g" x="1142.6761861499988" y="168" width="3.5295324282367977" height="23"><g> + <title>prim-rlib.py:33:__lt__ 0.38% (69794 69794 0.02942392951515977 0.02942392951515977)</title> + <rect height="100%" width="100%" fill="rgb(255, 115, 64)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">__lt__</text> +</g></svg> +<svg class="func_g" x="1156.0821880897756" y="192" width="1.0967862531266617" height="23"><g> + <title>~:0:&lt;method 'append' of 'list' objects&gt; 0.17% (78694 78694 0.013620763709681844 0.013620763709681844)</title> + <rect height="100%" width="100%" fill="rgb(255, 115, 64)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;method 'append' of 'list' objects&gt;</text> +</g></svg> +<svg class="func_g" x="1.4154648793260207" y="288" width="15.513830560310339" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/pyray/__init__.py:47:wrapped_func 1.38% (44999 44999 0.10727416000000001 6.826442482)</title> + <rect height="100%" width="100%" fill="rgb(255, 115, 64)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">wrapped_func</text> +</g></svg> +<svg class="func_g" x="1.4154648793260207" y="312" width="15.2358936815912" height="23"><g> + <title>prim-rlib.py:1:&lt;module&gt; 0.87% (12501 12501 0.068034142 6.711549689000001)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="1.4154648793260207" y="336" width="15.2358936815912" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 3.51% (1 1 0.273379621 7.795185733)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="1.909324180943718" y="360" width="14.742034379973504" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="2.1243955905986014" y="384" width="14.184329577237712" height="23"><g> + <title>&lt;frozen importlib._bootstrap_external&gt;:753:exec_module 0.00% (25 3 1.1858e-05 0.065100789)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">exec_module</text> +</g></svg> +<svg class="func_g" x="2.1243955905986014" y="408" width="14.184329577237712" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:914:_load_unlocked 0.00% (25 3 7.6069e-05 0.065515945)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_load_unlocked</text> +</g></svg> +<svg class="func_g" x="2.1243955905986014" y="432" width="14.184329577237712" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.00% (35 3 9.068100000000001e-05 0.065598707)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="2.1243955905986014" y="456" width="14.184329577237712" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1360:_find_and_load 0.00% (35 3 9.147400000000001e-05 0.06590635)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load</text> +</g></svg> +<svg class="func_g" x="2.3445516067122334" y="480" width="2.5868930024124572" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/pyray/__init__.py:1:&lt;module&gt; 0.00% (3 3 1.8344000000000003e-05 0.032317813)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="2.3445516067122334" y="504" width="2.5868930024124572" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.04% (1 1 0.0030612770000000003 0.06408074700000001)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="2.453656809535612" y="528" width="2.4777877995890787" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="5.931444609124691" y="480" width="1" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/raylib/__init__.py:1:&lt;module&gt; 0.00% (6 6 2.1066e-05 0.015798561000000003)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="5.931444609124691" y="504" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.01% (1 1 0.001155762 0.017120984000000002)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="5.984780681160955" y="528" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="9.865993772387071" y="480" width="6.32597889538747" height="23"><g> + <title>prim-rlib.py:1:&lt;module&gt; 0.00% (3 3 1.8064000000000002e-05 0.06600688)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="9.865993772387071" y="504" width="6.32597889538747" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 3.51% (1 1 0.273379621 7.795185733)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="17.935459984246055" y="288" width="16.685178241568952" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/pyray/__init__.py:117:func 1.47% (7497 7497 0.114883257 0.183965549)</title> + <rect height="100%" width="100%" fill="rgb(255, 190, 110)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">func</text> +</g></svg> +<svg class="func_g" x="17.935459984246055" y="312" width="16.685178241568952" height="23"><g> + <title>prim-rlib.py:1:&lt;module&gt; 1.47% (7497 7497 0.114883257 0.183965549)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="17.935459984246055" y="336" width="16.685178241568952" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 3.51% (1 1 0.273379621 7.795185733)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="18.47340325651992" y="360" width="16.14723496929509" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="18.707672850113326" y="384" width="15.539747076359163" height="23"><g> + <title>&lt;frozen importlib._bootstrap_external&gt;:753:exec_module 0.00% (25 3 1.1858e-05 0.065100789)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">exec_module</text> +</g></svg> +<svg class="func_g" x="18.707672850113326" y="408" width="15.539747076359163" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:914:_load_unlocked 0.00% (25 3 7.6069e-05 0.065515945)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_load_unlocked</text> +</g></svg> +<svg class="func_g" x="18.707672850113326" y="432" width="15.539747076359163" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.00% (35 3 9.068100000000001e-05 0.065598707)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="18.707672850113326" y="456" width="15.539747076359163" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1360:_find_and_load 0.00% (35 3 9.147400000000001e-05 0.06590635)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load</text> +</g></svg> +<svg class="func_g" x="18.947480923649668" y="480" width="2.907074247044699" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/pyray/__init__.py:1:&lt;module&gt; 0.00% (3 3 1.8344000000000003e-05 0.032317813)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="18.947480923649668" y="504" width="2.907074247044699" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.04% (1 1 0.0030612770000000003 0.06408074700000001)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="19.066325318473577" y="528" width="2.7882298522207933" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="22.85455517069437" y="480" width="1" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/raylib/__init__.py:1:&lt;module&gt; 0.00% (6 6 2.1066e-05 0.015798561000000003)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="22.85455517069437" y="504" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.01% (1 1 0.001155762 0.017120984000000002)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="22.91265224617202" y="528" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="27.140318838351718" y="480" width="6.979926765953186" height="23"><g> + <title>prim-rlib.py:1:&lt;module&gt; 0.00% (3 3 1.8064000000000002e-05 0.06600688)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="27.140318838351718" y="504" width="6.979926765953186" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 3.51% (1 1 0.273379621 7.795185733)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="37.95647338690919" y="288" width="2.5489859824936594" height="23"><g> + <title>/usr/lib/python3.14/random.py:245:_randbelow_with_getrandbits 0.30% (50019 50019 0.023054281000000003 0.038371478)</title> + <rect height="100%" width="100%" fill="rgb(255, 140, 79)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_randbelow_with_getrandbits</text> +</g></svg> +<svg class="func_g" x="37.95647338690919" y="312" width="2.5489859824936594" height="23"><g> + <title>/usr/lib/python3.14/random.py:347:choice 0.30% (50019 50019 0.023054281000000003 0.038371478)</title> + <rect height="100%" width="100%" fill="rgb(225, 225, 225)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">choice</text> +</g></svg> +<svg class="func_g" x="37.95647338690919" y="336" width="2.5489859824936594" height="23"><g> + <title>prim-rlib.py:1:&lt;module&gt; 0.32% (50019 50019 0.024795004000000002 0.071499593)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="37.95647338690919" y="360" width="2.5489859824936594" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 3.51% (1 1 0.273379621 7.795185733)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="38.06442554360215" y="384" width="2.441033825800703" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="38.111437764368645" y="408" width="2.3191257518692447" height="23"><g> + <title>&lt;frozen importlib._bootstrap_external&gt;:753:exec_module 0.00% (25 3 1.1858e-05 0.065100789)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">exec_module</text> +</g></svg> +<svg class="func_g" x="38.111437764368645" y="432" width="2.3191257518692447" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:914:_load_unlocked 0.00% (25 3 7.6069e-05 0.065515945)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_load_unlocked</text> +</g></svg> +<svg class="func_g" x="38.111437764368645" y="456" width="2.3191257518692447" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.00% (35 3 9.068100000000001e-05 0.065598707)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="38.111437764368645" y="480" width="2.319125751869245" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1360:_find_and_load 0.00% (35 3 9.147400000000001e-05 0.06590635)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load</text> +</g></svg> +<svg class="func_g" x="39.803665119886354" y="504" width="1" height="23"><g> + <title>prim-rlib.py:1:&lt;module&gt; 0.00% (3 3 1.8064000000000002e-05 0.06600688)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="39.803665119886354" y="528" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 3.51% (1 1 0.273379621 7.795185733)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="41.50545936940284" y="288" width="2.8169536335517997" height="23"><g> + <title>/usr/lib/python3.14/random.py:347:choice 0.32% (50019 50019 0.024795004000000002 0.071499593)</title> + <rect height="100%" width="100%" fill="rgb(255, 115, 64)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">choice</text> +</g></svg> +<svg class="func_g" x="41.50545936940284" y="312" width="2.8169536335517997" height="23"><g> + <title>prim-rlib.py:1:&lt;module&gt; 0.32% (50019 50019 0.024795004000000002 0.071499593)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="41.50545936940284" y="336" width="2.8169536335517997" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 3.51% (1 1 0.273379621 7.795185733)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="41.621562498232166" y="360" width="2.700850504722474" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="41.67212439612672" y="384" width="2.5697377113647972" height="23"><g> + <title>&lt;frozen importlib._bootstrap_external&gt;:753:exec_module 0.00% (25 3 1.1858e-05 0.065100789)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">exec_module</text> +</g></svg> +<svg class="func_g" x="41.67212439612672" y="408" width="2.5697377113647972" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:914:_load_unlocked 0.00% (25 3 7.6069e-05 0.065515945)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_load_unlocked</text> +</g></svg> +<svg class="func_g" x="41.67212439612672" y="432" width="2.5697377113647972" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.00% (35 3 9.068100000000001e-05 0.065598707)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="41.67212439612672" y="456" width="2.5697377113647972" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1360:_find_and_load 0.00% (35 3 9.147400000000001e-05 0.06590635)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load</text> +</g></svg> +<svg class="func_g" x="43.49212407640175" y="480" width="1" height="23"><g> + <title>prim-rlib.py:1:&lt;module&gt; 0.00% (3 3 1.8064000000000002e-05 0.06600688)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="43.49212407640175" y="504" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 3.51% (1 1 0.273379621 7.795185733)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="47.06333166289663" y="288" width="1" height="23"><g> + <title>/usr/lib/python3.14/weakref.py:311:remove 0.17% (7495 7495 0.012984438000000001 0.012984438000000001)</title> + <rect height="100%" width="100%" fill="rgb(166, 166, 255)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">remove</text> +</g></svg> +<svg class="func_g" x="47.06333166289663" y="312" width="1" height="23"><g> + <title>prim-rlib.py:1:&lt;module&gt; 0.17% (7495 7495 0.012984438000000001 0.012984438000000001)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="47.06333166289663" y="336" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 3.51% (1 1 0.273379621 7.795185733)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="47.124131567502026" y="360" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="47.150609394582595" y="384" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap_external&gt;:753:exec_module 0.00% (25 3 1.1858e-05 0.065100789)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">exec_module</text> +</g></svg> +<svg class="func_g" x="47.150609394582595" y="408" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:914:_load_unlocked 0.00% (25 3 7.6069e-05 0.065515945)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_load_unlocked</text> +</g></svg> +<svg class="func_g" x="47.150609394582595" y="432" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.00% (35 3 9.068100000000001e-05 0.065598707)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="47.150609394582595" y="456" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1360:_find_and_load 0.00% (35 3 9.147400000000001e-05 0.06590635)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load</text> +</g></svg> +<svg class="func_g" x="49.06216166121919" y="288" width="2.2804696877349584" height="23"><g> + <title>/usr/lib/python3.14/weakref.py:334:__setitem__ 0.27% (7497 7497 0.021309994000000002 0.021309994000000002)</title> + <rect height="100%" width="100%" fill="rgb(214, 214, 255)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">__setitem__</text> +</g></svg> +<svg class="func_g" x="49.06216166121919" y="312" width="2.2804696877349584" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/pyray/__init__.py:117:func 0.27% (7497 7497 0.021309994000000002 0.021309994000000002)</title> + <rect height="100%" width="100%" fill="rgb(204, 204, 204)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">func</text> +</g></svg> +<svg class="func_g" x="49.06216166121919" y="336" width="2.2804696877349584" height="23"><g> + <title>prim-rlib.py:1:&lt;module&gt; 1.47% (7497 7497 0.114883257 0.183965549)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="49.06216166121919" y="360" width="2.2804696877349584" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 3.51% (1 1 0.273379621 7.795185733)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="49.16194615727066" y="384" width="2.180685191683489" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="49.20540143321098" y="408" width="2.0680006831520394" height="23"><g> + <title>&lt;frozen importlib._bootstrap_external&gt;:753:exec_module 0.00% (25 3 1.1858e-05 0.065100789)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">exec_module</text> +</g></svg> +<svg class="func_g" x="49.20540143321098" y="432" width="2.0680006831520394" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:914:_load_unlocked 0.00% (25 3 7.6069e-05 0.065515945)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_load_unlocked</text> +</g></svg> +<svg class="func_g" x="49.20540143321098" y="456" width="2.0680006831520394" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.00% (35 3 9.068100000000001e-05 0.065598707)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="49.20540143321098" y="480" width="2.0680006831520394" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1360:_find_and_load 0.00% (35 3 9.147400000000001e-05 0.06590635)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load</text> +</g></svg> +<svg class="func_g" x="50.76959485970378" y="504" width="1" height="23"><g> + <title>prim-rlib.py:1:&lt;module&gt; 0.00% (3 3 1.8064000000000002e-05 0.06600688)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="50.76959485970378" y="528" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 3.51% (1 1 0.273379621 7.795185733)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="52.970811914469955" y="288" width="41.08417702674958" height="23"><g> + <title>prim-rlib.py:1:&lt;module&gt; 3.51% (1 1 0.273379621 7.795185733)</title> + <rect height="100%" width="100%" fill="rgb(255, 240, 141)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="52.970811914469955" y="312" width="41.08417702674958" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 3.51% (1 1 0.273379621 7.795185733)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="52.970811914469955" y="336" width="1" height="23"><g> + <title>/usr/lib/python3.14/dataclasses.py:478:add_fns_to_class 0.03% (5 5 0.0020397180000000003 0.0020422960000000003)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">add_fns_to_class</text> +</g></svg> +<svg class="func_g" x="52.970811914469955" y="360" width="1" height="23"><g> + <title>/usr/lib/python3.14/dataclasses.py:986:_process_class 0.00% (5 5 8.014900000000001e-05 0.0022038490000000003)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_process_class</text> +</g></svg> +<svg class="func_g" x="52.970811914469955" y="384" width="1" height="23"><g> + <title>/usr/lib/python3.14/dataclasses.py:1440:wrap 0.00% (5 5 0.00023698000000000002 0.004191001000000001)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">wrap</text> +</g></svg> +<svg class="func_g" x="52.970811914469955" y="408" width="1" height="23"><g> + <title>/usr/lib/python3.14/_colorize.py:1:&lt;module&gt; 0.00% (5 5 1.8024000000000002e-05 0.004209025)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="52.970811914469955" y="432" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 6.2558e-05 0.004543728)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="53.00974984959099" y="456" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="54.2509177517699" y="336" width="39.80407118944964" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="54.80839265612771" y="360" width="38.358474900924215" height="23"><g> + <title>&lt;frozen importlib._bootstrap_external&gt;:753:exec_module 0.00% (25 3 1.1858e-05 0.065100789)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">exec_module</text> +</g></svg> +<svg class="func_g" x="54.80839265612771" y="384" width="38.358474900924215" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:914:_load_unlocked 0.00% (25 3 7.6069e-05 0.065515945)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_load_unlocked</text> +</g></svg> +<svg class="func_g" x="54.80839265612771" y="408" width="38.358474900924215" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.00% (35 3 9.068100000000001e-05 0.065598707)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="54.80839265612771" y="432" width="38.358474900924215" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1360:_find_and_load 0.00% (35 3 9.147400000000001e-05 0.06590635)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load</text> +</g></svg> +<svg class="func_g" x="55.379047092362114" y="456" width="8.297390279211358" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/pyray/__init__.py:1:&lt;module&gt; 0.00% (3 3 1.8344000000000003e-05 0.032317813)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="55.379047092362114" y="480" width="8.297390279211358" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.04% (1 1 0.0030612770000000003 0.06408074700000001)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="55.6618527549395" y="504" width="8.014584616633968" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="64.67643737157347" y="456" width="3.545028695689517" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/raylib/__init__.py:1:&lt;module&gt; 0.00% (6 6 2.1066e-05 0.015798561000000003)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="64.67643737157347" y="480" width="3.545028695689517" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.01% (1 1 0.001155762 0.017120984000000002)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="64.81468690322879" y="504" width="3.4067791640341927" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="69.39851451173577" y="456" width="1.7845571707301953" height="23"><g> + <title>/usr/lib/python3.14/logging/__init__.py:1:&lt;module&gt; 0.00% (4 4 1.4734000000000002e-05 0.009679146000000001)</title> + <rect height="100%" width="100%" fill="rgb(225, 225, 225)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="69.39851451173577" y="480" width="1.7845571707301953" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 5.4665000000000006e-05 0.011535922)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="69.48321446645467" y="504" width="1.6998572160113126" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="72.39952077204029" y="456" width="1.3057137720850802" height="23"><g> + <title>/usr/lib/python3.14/traceback.py:1:&lt;module&gt; 0.00% (5 5 1.8323e-05 0.008014682)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="72.39952077204029" y="480" width="1.3057137720850802" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 3.193e-05 0.008218445000000001)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="72.46965538954542" y="504" width="1.2355791545799573" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="74.87496827812444" y="456" width="17.989271473074947" height="23"><g> + <title>prim-rlib.py:1:&lt;module&gt; 0.00% (3 3 1.8064000000000002e-05 0.06600688)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="74.87496827812444" y="480" width="17.989271473074947" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 3.51% (1 1 0.273379621 7.795185733)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="95.09951113121534" y="288" width="1" height="23"><g> + <title>prim-rlib.py:20:draw_vertex 0.15% (4999 4999 0.011958721 0.06650695100000001)</title> + <rect height="100%" width="100%" fill="rgb(255, 90, 49)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">draw_vertex</text> +</g></svg> +<svg class="func_g" x="95.09951113121534" y="312" width="1" height="23"><g> + <title>prim-rlib.py:1:&lt;module&gt; 0.15% (4999 4999 0.011958721 0.06650695100000001)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="95.09951113121534" y="336" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 3.51% (1 1 0.273379621 7.795185733)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="95.1555080943494" y="360" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="95.17989428239564" y="384" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap_external&gt;:753:exec_module 0.00% (25 3 1.1858e-05 0.065100789)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">exec_module</text> +</g></svg> +<svg class="func_g" x="95.17989428239564" y="408" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:914:_load_unlocked 0.00% (25 3 7.6069e-05 0.065515945)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_load_unlocked</text> +</g></svg> +<svg class="func_g" x="95.17989428239564" y="432" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.00% (35 3 9.068100000000001e-05 0.065598707)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="95.17989428239564" y="456" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1360:_find_and_load 0.00% (35 3 9.147400000000001e-05 0.06590635)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load</text> +</g></svg> +<svg class="func_g" x="96.94069134862615" y="288" width="1" height="23"><g> + <title>prim-rlib.py:26:__init__ 0.13% (25000 25000 0.010058702000000001 0.012719608)</title> + <rect height="100%" width="100%" fill="rgb(255, 190, 110)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">__init__</text> +</g></svg> +<svg class="func_g" x="96.94069134862615" y="312" width="1" height="23"><g> + <title>prim-rlib.py:1:&lt;module&gt; 0.13% (25000 25000 0.010058702000000001 0.012719608)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="96.94069134862615" y="336" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 3.51% (1 1 0.273379621 7.795185733)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="96.98779143274639" y="360" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="97.00830310773848" y="384" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap_external&gt;:753:exec_module 0.00% (25 3 1.1858e-05 0.065100789)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">exec_module</text> +</g></svg> +<svg class="func_g" x="97.00830310773848" y="408" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:914:_load_unlocked 0.00% (25 3 7.6069e-05 0.065515945)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_load_unlocked</text> +</g></svg> +<svg class="func_g" x="97.00830310773848" y="432" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.00% (35 3 9.068100000000001e-05 0.065598707)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="97.00830310773848" y="456" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1360:_find_and_load 0.00% (35 3 9.147400000000001e-05 0.06590635)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load</text> +</g></svg> +<svg class="func_g" x="98.48913228244147" y="288" width="4.8325064889112115" height="23"><g> + <title>prim-rlib.py:30:draw_edge 0.49% (27499 27499 0.037888074 0.09823263700000001)</title> + <rect height="100%" width="100%" fill="rgb(255, 215, 125)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">draw_edge</text> +</g></svg> +<svg class="func_g" x="98.48913228244147" y="312" width="4.8325064889112115" height="23"><g> + <title>prim-rlib.py:1:&lt;module&gt; 0.49% (27499 27499 0.037888074 0.09823263700000001)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="98.48913228244147" y="336" width="4.8325064889112115" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 3.51% (1 1 0.273379621 7.795185733)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="98.66654398750583" y="360" width="4.6550947838468755" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="98.74380523452999" y="384" width="4.454747519652752" height="23"><g> + <title>&lt;frozen importlib._bootstrap_external&gt;:753:exec_module 0.00% (25 3 1.1858e-05 0.065100789)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">exec_module</text> +</g></svg> +<svg class="func_g" x="98.74380523452999" y="408" width="4.454747519652752" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:914:_load_unlocked 0.00% (25 3 7.6069e-05 0.065515945)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_load_unlocked</text> +</g></svg> +<svg class="func_g" x="98.74380523452999" y="432" width="4.454747519652752" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.00% (35 3 9.068100000000001e-05 0.065598707)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="98.74380523452999" y="456" width="4.454747519652752" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1360:_find_and_load 0.00% (35 3 9.147400000000001e-05 0.06590635)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load</text> +</g></svg> +<svg class="func_g" x="98.82289305179079" y="480" width="1" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/pyray/__init__.py:1:&lt;module&gt; 0.00% (3 3 1.8344000000000003e-05 0.032317813)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="98.82289305179079" y="504" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.04% (1 1 0.0030612770000000003 0.06408074700000001)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="98.86208749442025" y="528" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="101.52486074741626" y="480" width="1.631750384853861" height="23"><g> + <title>prim-rlib.py:1:&lt;module&gt; 0.00% (3 3 1.8064000000000002e-05 0.06600688)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="101.52486074741626" y="504" width="1.631750384853861" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 3.51% (1 1 0.273379621 7.795185733)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="104.3216387713527" y="288" width="14.915671919714413" height="23"><g> + <title>prim-rlib.py:33:__lt__ 1.33% (403325 403325 0.10338851 0.10338851)</title> + <rect height="100%" width="100%" fill="rgb(166, 166, 255)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">__lt__</text> +</g></svg> +<svg class="func_g" x="104.3216387713527" y="312" width="10.311109004099908" height="23"><g> + <title>~:0:&lt;built-in method _heapq.heappop&gt; 0.94% (332375 332375 0.073477181 0.073477181)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method _heapq.heappop&gt;</text> +</g></svg> +<svg class="func_g" x="104.3216387713527" y="336" width="10.311109004099908" height="23"><g> + <title>prim-rlib.py:1:&lt;module&gt; 1.56% (25000 25000 0.12161872200000001 0.19509590300000001)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="104.3216387713527" y="360" width="10.311109004099908" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 3.51% (1 1 0.273379621 7.795185733)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="104.665697220049" y="384" width="9.9670505554036" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="104.8155316674764" y="408" width="9.578512668942377" height="23"><g> + <title>&lt;frozen importlib._bootstrap_external&gt;:753:exec_module 0.00% (25 3 1.1858e-05 0.065100789)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">exec_module</text> +</g></svg> +<svg class="func_g" x="104.8155316674764" y="432" width="9.578512668942377" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:914:_load_unlocked 0.00% (25 3 7.6069e-05 0.065515945)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_load_unlocked</text> +</g></svg> +<svg class="func_g" x="104.8155316674764" y="456" width="9.578512668942377" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.00% (35 3 9.068100000000001e-05 0.065598707)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="104.8155316674764" y="480" width="9.578512668942377" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1360:_find_and_load 0.00% (35 3 9.147400000000001e-05 0.06590635)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load</text> +</g></svg> +<svg class="func_g" x="104.96890842301609" y="504" width="1.4988915628544728" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/pyray/__init__.py:1:&lt;module&gt; 0.00% (3 3 1.8344000000000003e-05 0.032317813)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="104.96890842301609" y="528" width="1.4988915628544728" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.04% (1 1 0.0030612770000000003 0.06408074700000001)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="105.04491907363085" y="552" width="1.4228809122397221" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="107.46779998587056" y="504" width="1" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/raylib/__init__.py:1:&lt;module&gt; 0.00% (6 6 2.1066e-05 0.015798561000000003)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="107.46779998587056" y="528" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.01% (1 1 0.001155762 0.017120984000000002)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="110.20889421452466" y="504" width="4.103811805654908" height="23"><g> + <title>prim-rlib.py:1:&lt;module&gt; 0.00% (3 3 1.8064000000000002e-05 0.06600688)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="110.20889421452466" y="528" width="4.103811805654908" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 3.51% (1 1 0.273379621 7.795185733)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="115.63274777545261" y="312" width="3.6045629156145047" height="23"><g> + <title>~:0:&lt;built-in method _heapq.heappush&gt; 0.38% (70950 70950 0.029911329 0.029911329)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method _heapq.heappush&gt;</text> +</g></svg> +<svg class="func_g" x="115.63274777545261" y="336" width="3.6045629156145047" height="23"><g> + <title>prim-rlib.py:1:&lt;module&gt; 0.69% (25000 25000 0.053988208 0.08389953700000001)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="115.63274777545261" y="360" width="3.6045629156145047" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 3.51% (1 1 0.273379621 7.795185733)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="115.7728082039302" y="384" width="3.4645024871369223" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="115.83380329644112" y="408" width="3.306335224964653" height="23"><g> + <title>&lt;frozen importlib._bootstrap_external&gt;:753:exec_module 0.00% (25 3 1.1858e-05 0.065100789)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">exec_module</text> +</g></svg> +<svg class="func_g" x="115.83380329644112" y="432" width="3.306335224964653" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:914:_load_unlocked 0.00% (25 3 7.6069e-05 0.065515945)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_load_unlocked</text> +</g></svg> +<svg class="func_g" x="115.83380329644112" y="456" width="3.306335224964653" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.00% (35 3 9.068100000000001e-05 0.065598707)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="115.83380329644112" y="480" width="3.306335224964653" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1360:_find_and_load 0.00% (35 3 9.147400000000001e-05 0.06590635)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load</text> +</g></svg> +<svg class="func_g" x="118.02935080337443" y="504" width="1.077676252618184" height="23"><g> + <title>prim-rlib.py:1:&lt;module&gt; 0.00% (3 3 1.8064000000000002e-05 0.06600688)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="118.02935080337443" y="528" width="1.077676252618184" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 3.51% (1 1 0.273379621 7.795185733)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="120.40396352421892" y="288" width="17.722038635114806" height="23"><g> + <title>~:0:&lt;built-in method _heapq.heappop&gt; 1.56% (25000 25000 0.12161872200000001 0.19509590300000001)</title> + <rect height="100%" width="100%" fill="rgb(255, 140, 79)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method _heapq.heappop&gt;</text> +</g></svg> +<svg class="func_g" x="120.40396352421892" y="312" width="17.722038635114806" height="23"><g> + <title>prim-rlib.py:1:&lt;module&gt; 1.56% (25000 25000 0.12161872200000001 0.19509590300000001)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="120.40396352421892" y="336" width="17.722038635114806" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 3.51% (1 1 0.273379621 7.795185733)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="120.97344575331734" y="360" width="17.152556406016394" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="121.2214502869657" y="384" width="16.50945224011222" height="23"><g> + <title>&lt;frozen importlib._bootstrap_external&gt;:753:exec_module 0.00% (25 3 1.1858e-05 0.065100789)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">exec_module</text> +</g></svg> +<svg class="func_g" x="121.2214502869657" y="408" width="16.50945224011222" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:914:_load_unlocked 0.00% (25 3 7.6069e-05 0.065515945)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_load_unlocked</text> +</g></svg> +<svg class="func_g" x="121.2214502869657" y="432" width="16.50945224011222" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.00% (35 3 9.068100000000001e-05 0.065598707)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="121.2214502869657" y="456" width="16.50945224011222" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1360:_find_and_load 0.00% (35 3 9.147400000000001e-05 0.06590635)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load</text> +</g></svg> +<svg class="func_g" x="121.47531801486943" y="480" width="3.1361412367050905" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/pyray/__init__.py:1:&lt;module&gt; 0.00% (3 3 1.8344000000000003e-05 0.032317813)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="121.47531801486943" y="504" width="3.1361412367050905" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.04% (1 1 0.0030612770000000003 0.06408074700000001)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="121.60113011136447" y="528" width="3.0103291402100636" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="125.61145925157453" y="480" width="1.0219524023083126" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/raylib/__init__.py:1:&lt;module&gt; 0.00% (6 6 2.1066e-05 0.015798561000000003)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="125.61145925157453" y="504" width="1.0219524023083126" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.01% (1 1 0.001155762 0.017120984000000002)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="125.67296248760769" y="528" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="127.71217540909657" y="480" width="1" height="23"><g> + <title>/usr/lib/python3.14/logging/__init__.py:1:&lt;module&gt; 0.00% (4 4 1.4734000000000002e-05 0.009679146000000001)</title> + <rect height="100%" width="100%" fill="rgb(225, 225, 225)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="127.71217540909657" y="504" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 5.4665000000000006e-05 0.011535922)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="127.74985598019651" y="528" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="130.14849200696133" y="480" width="7.447780122814761" height="23"><g> + <title>prim-rlib.py:1:&lt;module&gt; 0.00% (3 3 1.8064000000000002e-05 0.06600688)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="130.14849200696133" y="504" width="7.447780122814761" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 3.51% (1 1 0.273379621 7.795185733)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="139.12600215933375" y="288" width="7.31096807625239" height="23"><g> + <title>~:0:&lt;built-in method _heapq.heappush&gt; 0.69% (25000 25000 0.053988208 0.08389953700000001)</title> + <rect height="100%" width="100%" fill="rgb(255, 240, 141)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method _heapq.heappush&gt;</text> +</g></svg> +<svg class="func_g" x="139.12600215933375" y="312" width="7.31096807625239" height="23"><g> + <title>prim-rlib.py:1:&lt;module&gt; 0.69% (25000 25000 0.053988208 0.08389953700000001)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="139.12600215933375" y="336" width="7.31096807625239" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 3.51% (1 1 0.273379621 7.795185733)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="139.37880308119236" y="360" width="7.058167154393759" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="139.4888956732486" y="384" width="6.7726844515373585" height="23"><g> + <title>&lt;frozen importlib._bootstrap_external&gt;:753:exec_module 0.00% (25 3 1.1858e-05 0.065100789)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">exec_module</text> +</g></svg> +<svg class="func_g" x="139.4888956732486" y="408" width="6.7726844515373585" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:914:_load_unlocked 0.00% (25 3 7.6069e-05 0.065515945)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_load_unlocked</text> +</g></svg> +<svg class="func_g" x="139.4888956732486" y="432" width="6.7726844515373585" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.00% (35 3 9.068100000000001e-05 0.065598707)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="139.4888956732486" y="456" width="6.7726844515373585" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1360:_find_and_load 0.00% (35 3 9.147400000000001e-05 0.06590635)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load</text> +</g></svg> +<svg class="func_g" x="139.6015910171329" y="480" width="1" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/pyray/__init__.py:1:&lt;module&gt; 0.00% (3 3 1.8344000000000003e-05 0.032317813)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="139.6015910171329" y="504" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.04% (1 1 0.0030612770000000003 0.06408074700000001)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="139.65744072121456" y="528" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="143.45173114198346" y="480" width="2.7500847148253116" height="23"><g> + <title>prim-rlib.py:1:&lt;module&gt; 0.00% (3 3 1.8064000000000002e-05 0.06600688)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="143.45173114198346" y="504" width="2.7500847148253116" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 3.51% (1 1 0.273379621 7.795185733)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="148.7816511489947" y="288" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.len&gt; 0.12% (106472 106565 0.008999130000000001 0.009020045)</title> + <rect height="100%" width="100%" fill="rgb(255, 140, 79)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.len&gt;</text> +</g></svg> +<svg class="func_g" x="148.86108533595294" y="312" width="1" height="23"><g> + <title>/usr/lib/python3.14/random.py:347:choice 0.11% (100038 100038 0.008333111 0.008333111)</title> + <rect height="100%" width="100%" fill="rgb(225, 225, 225)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">choice</text> +</g></svg> +<svg class="func_g" x="148.86108533595294" y="336" width="1" height="23"><g> + <title>prim-rlib.py:1:&lt;module&gt; 0.32% (50019 50019 0.024795004000000002 0.071499593)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="148.86108533595294" y="360" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 3.51% (1 1 0.273379621 7.795185733)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="148.8999747696459" y="384" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="152.19458857991165" y="288" width="6.069599511799061" height="23"><g> + <title>~:0:&lt;built-in method raylib._raylib_cffi.BeginTextureMode&gt; 0.59% (2500 2500 0.045924254000000005 0.045924254000000005)</title> + <rect height="100%" width="100%" fill="rgb(214, 214, 255)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method raylib._raylib_cffi.BeginTextureMode&gt;</text> +</g></svg> +<svg class="func_g" x="152.19458857991165" y="312" width="6.069599511799061" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/pyray/__init__.py:47:wrapped_func 0.59% (2500 2500 0.045924254000000005 0.045924254000000005)</title> + <rect height="100%" width="100%" fill="rgb(225, 225, 225)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">wrapped_func</text> +</g></svg> +<svg class="func_g" x="152.19458857991165" y="336" width="5.950614251842096" height="23"><g> + <title>prim-rlib.py:1:&lt;module&gt; 0.87% (12501 12501 0.068034142 6.711549689000001)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="152.19458857991165" y="360" width="5.950614251842096" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 3.51% (1 1 0.273379621 7.795185733)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="152.40601060370335" y="384" width="5.739192228050405" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="152.49808304729208" y="408" width="5.500437834468033" height="23"><g> + <title>&lt;frozen importlib._bootstrap_external&gt;:753:exec_module 0.00% (25 3 1.1858e-05 0.065100789)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">exec_module</text> +</g></svg> +<svg class="func_g" x="152.49808304729208" y="432" width="5.500437834468033" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:914:_load_unlocked 0.00% (25 3 7.6069e-05 0.065515945)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_load_unlocked</text> +</g></svg> +<svg class="func_g" x="152.49808304729208" y="456" width="5.500437834468033" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.00% (35 3 9.068100000000001e-05 0.065598707)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="152.49808304729208" y="480" width="5.500437834468033" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1360:_find_and_load 0.00% (35 3 9.147400000000001e-05 0.06590635)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load</text> +</g></svg> +<svg class="func_g" x="152.59233221972679" y="504" width="1" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/pyray/__init__.py:1:&lt;module&gt; 0.00% (3 3 1.8344000000000003e-05 0.032317813)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="152.59233221972679" y="528" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.04% (1 1 0.0030612770000000003 0.06408074700000001)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="152.63904034633606" y="552" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="155.81227465938574" y="504" width="2.1362642745504936" height="23"><g> + <title>prim-rlib.py:1:&lt;module&gt; 0.00% (3 3 1.8064000000000002e-05 0.06600688)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="155.81227465938574" y="528" width="2.1362642745504936" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 3.51% (1 1 0.273379621 7.795185733)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="159.26576521143915" y="288" width="1.1202602125118006" height="23"><g> + <title>~:0:&lt;built-in method raylib._raylib_cffi.CloseWindow&gt; 0.18% (1 1 0.013773251 0.013773251)</title> + <rect height="100%" width="100%" fill="rgb(214, 214, 255)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method raylib._raylib_cffi.CloseWindow&gt;</text> +</g></svg> +<svg class="func_g" x="159.26576521143915" y="312" width="1.1202602125118006" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/pyray/__init__.py:47:wrapped_func 0.18% (1 1 0.013773251 0.013773251)</title> + <rect height="100%" width="100%" fill="rgb(225, 225, 225)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">wrapped_func</text> +</g></svg> +<svg class="func_g" x="159.26576521143915" y="336" width="1.0845750634250564" height="23"><g> + <title>prim-rlib.py:1:&lt;module&gt; 0.87% (12501 12501 0.068034142 6.711549689000001)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="159.26576521143915" y="360" width="1.0845750634250564" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 3.51% (1 1 0.273379621 7.795185733)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="159.32917328771646" y="384" width="1.0211669871477382" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="159.35678695076544" y="408" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap_external&gt;:753:exec_module 0.00% (25 3 1.1858e-05 0.065100789)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">exec_module</text> +</g></svg> +<svg class="func_g" x="159.35678695076544" y="432" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:914:_load_unlocked 0.00% (25 3 7.6069e-05 0.065515945)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_load_unlocked</text> +</g></svg> +<svg class="func_g" x="159.35678695076544" y="456" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.00% (35 3 9.068100000000001e-05 0.065598707)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="159.35678695076544" y="480" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1360:_find_and_load 0.00% (35 3 9.147400000000001e-05 0.06590635)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load</text> +</g></svg> +<svg class="func_g" x="161.38602542395097" y="288" width="5.535788741588346" height="23"><g> + <title>~:0:&lt;built-in method raylib._raylib_cffi.DrawCircle&gt; 0.54% (4999 4999 0.042456609 0.042456609)</title> + <rect height="100%" width="100%" fill="rgb(166, 166, 255)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method raylib._raylib_cffi.DrawCircle&gt;</text> +</g></svg> +<svg class="func_g" x="161.38602542395097" y="312" width="5.535788741588346" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/pyray/__init__.py:47:wrapped_func 0.54% (4999 4999 0.042456609 0.042456609)</title> + <rect height="100%" width="100%" fill="rgb(225, 225, 225)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">wrapped_func</text> +</g></svg> +<svg class="func_g" x="161.38602542395097" y="336" width="5.425787811388018" height="23"><g> + <title>prim-rlib.py:1:&lt;module&gt; 0.87% (12501 12501 0.068034142 6.711549689000001)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="161.38602542395097" y="360" width="5.425787811388018" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 3.51% (1 1 0.273379621 7.795185733)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="161.5814834100102" y="384" width="5.230329825328788" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="161.66660365468795" y="408" width="5.00960327993169" height="23"><g> + <title>&lt;frozen importlib._bootstrap_external&gt;:753:exec_module 0.00% (25 3 1.1858e-05 0.065100789)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">exec_module</text> +</g></svg> +<svg class="func_g" x="161.66660365468795" y="432" width="5.00960327993169" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:914:_load_unlocked 0.00% (25 3 7.6069e-05 0.065515945)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_load_unlocked</text> +</g></svg> +<svg class="func_g" x="161.66660365468795" y="456" width="5.00960327993169" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.00% (35 3 9.068100000000001e-05 0.065598707)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="161.66660365468795" y="480" width="5.00960327993169" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1360:_find_and_load 0.00% (35 3 9.147400000000001e-05 0.06590635)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load</text> +</g></svg> +<svg class="func_g" x="161.7537362679392" y="504" width="1" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/pyray/__init__.py:1:&lt;module&gt; 0.00% (3 3 1.8344000000000003e-05 0.032317813)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="161.7537362679392" y="528" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.04% (1 1 0.0030612770000000003 0.06408074700000001)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="161.79691756095644" y="552" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="164.7305475442444" y="504" width="1.8994514755810505" height="23"><g> + <title>prim-rlib.py:1:&lt;module&gt; 0.00% (3 3 1.8064000000000002e-05 0.06600688)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="164.7305475442444" y="528" width="1.8994514755810505" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 3.51% (1 1 0.273379621 7.795185733)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="167.9218141655393" y="288" width="4.110232143285344" height="23"><g> + <title>~:0:&lt;built-in method raylib._raylib_cffi.DrawLine&gt; 0.43% (27499 27499 0.033196166 0.033196166)</title> + <rect height="100%" width="100%" fill="rgb(230, 230, 255)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method raylib._raylib_cffi.DrawLine&gt;</text> +</g></svg> +<svg class="func_g" x="167.9218141655393" y="312" width="4.110232143285344" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/pyray/__init__.py:47:wrapped_func 0.43% (27499 27499 0.033196166 0.033196166)</title> + <rect height="100%" width="100%" fill="rgb(225, 225, 225)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">wrapped_func</text> +</g></svg> +<svg class="func_g" x="167.9218141655393" y="336" width="4.024224117088893" height="23"><g> + <title>prim-rlib.py:1:&lt;module&gt; 0.87% (12501 12501 0.068034142 6.711549689000001)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="167.9218141655393" y="360" width="4.024224117088893" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 3.51% (1 1 0.273379621 7.795185733)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="168.07463974214738" y="384" width="3.8713985404808344" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="168.14119394510507" y="408" width="3.6988158680962204" height="23"><g> + <title>&lt;frozen importlib._bootstrap_external&gt;:753:exec_module 0.00% (25 3 1.1858e-05 0.065100789)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">exec_module</text> +</g></svg> +<svg class="func_g" x="168.14119394510507" y="432" width="3.6988158680962204" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:914:_load_unlocked 0.00% (25 3 7.6069e-05 0.065515945)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_load_unlocked</text> +</g></svg> +<svg class="func_g" x="168.14119394510507" y="456" width="3.6988158680962204" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.00% (35 3 9.068100000000001e-05 0.065598707)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="168.14119394510507" y="480" width="3.6988158680962204" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1360:_find_and_load 0.00% (35 3 9.147400000000001e-05 0.06590635)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load</text> +</g></svg> +<svg class="func_g" x="170.5368442894932" y="504" width="1.2670362697203044" height="23"><g> + <title>prim-rlib.py:1:&lt;module&gt; 0.00% (3 3 1.8064000000000002e-05 0.06600688)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="170.5368442894932" y="528" width="1.2670362697203044" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 3.51% (1 1 0.273379621 7.795185733)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="173.03204630882465" y="288" width="1" height="23"><g> + <title>~:0:&lt;built-in method raylib._raylib_cffi.DrawTexturePro&gt; 0.16% (2499 2499 0.012662722000000001 0.012662722000000001)</title> + <rect height="100%" width="100%" fill="rgb(198, 198, 255)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method raylib._raylib_cffi.DrawTexturePro&gt;</text> +</g></svg> +<svg class="func_g" x="173.03204630882465" y="312" width="1" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/pyray/__init__.py:47:wrapped_func 0.16% (2499 2499 0.012662722000000001 0.012662722000000001)</title> + <rect height="100%" width="100%" fill="rgb(225, 225, 225)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">wrapped_func</text> +</g></svg> +<svg class="func_g" x="173.03204630882465" y="336" width="1" height="23"><g> + <title>prim-rlib.py:1:&lt;module&gt; 0.87% (12501 12501 0.068034142 6.711549689000001)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="173.03204630882465" y="360" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 3.51% (1 1 0.273379621 7.795185733)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="173.09034182979167" y="384" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="173.11572901968538" y="408" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap_external&gt;:753:exec_module 0.00% (25 3 1.1858e-05 0.065100789)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">exec_module</text> +</g></svg> +<svg class="func_g" x="173.11572901968538" y="432" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:914:_load_unlocked 0.00% (25 3 7.6069e-05 0.065515945)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_load_unlocked</text> +</g></svg> +<svg class="func_g" x="173.11572901968538" y="456" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.00% (35 3 9.068100000000001e-05 0.065598707)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="173.11572901968538" y="480" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1360:_find_and_load 0.00% (35 3 9.147400000000001e-05 0.06590635)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load</text> +</g></svg> +<svg class="func_g" x="174.9813512070435" y="288" width="976.0125591372882" height="23"><g> + <title>~:0:&lt;built-in method raylib._raylib_cffi.EndDrawing&gt; 81.42% (2499 2499 6.346692320000001 6.346692320000001)</title> + <rect height="100%" width="100%" fill="rgb(166, 166, 255)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method raylib._raylib_cffi.EndDrawing&gt;</text> +</g></svg> +<svg class="func_g" x="174.9813512070435" y="312" width="976.0125591372882" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/pyray/__init__.py:47:wrapped_func 81.42% (2499 2499 6.346692320000001 6.346692320000001)</title> + <rect height="100%" width="100%" fill="rgb(225, 225, 225)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">wrapped_func</text> +</g></svg> +<svg class="func_g" x="174.9813512070435" y="336" width="959.5688987664075" height="23"><g> + <title>prim-rlib.py:1:&lt;module&gt; 0.87% (12501 12501 0.068034142 6.711549689000001)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="174.9813512070435" y="360" width="959.5688987664075" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 3.51% (1 1 0.273379621 7.795185733)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="174.9813512070435" y="384" width="28.218341460213757" height="23"><g> + <title>/usr/lib/python3.14/dataclasses.py:478:add_fns_to_class 0.03% (5 5 0.0020397180000000003 0.0020422960000000003)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">add_fns_to_class</text> +</g></svg> +<svg class="func_g" x="174.9813512070435" y="408" width="28.218341460213757" height="23"><g> + <title>/usr/lib/python3.14/dataclasses.py:986:_process_class 0.00% (5 5 8.014900000000001e-05 0.0022038490000000003)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_process_class</text> +</g></svg> +<svg class="func_g" x="174.9813512070435" y="432" width="28.218341460213757" height="23"><g> + <title>/usr/lib/python3.14/dataclasses.py:1440:wrap 0.00% (5 5 0.00023698000000000002 0.004191001000000001)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">wrap</text> +</g></svg> +<svg class="func_g" x="174.9813512070435" y="456" width="28.218341460213757" height="23"><g> + <title>/usr/lib/python3.14/_colorize.py:1:&lt;module&gt; 0.00% (5 5 1.8024000000000002e-05 0.004209025)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="174.9813512070435" y="480" width="28.218341460213757" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 6.2558e-05 0.004543728)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="175.8701073168676" y="504" width="27.329585350389667" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="176.25715283520276" y="528" width="26.325931983355638" height="23"><g> + <title>&lt;frozen importlib._bootstrap_external&gt;:753:exec_module 0.00% (25 3 1.1858e-05 0.065100789)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">exec_module</text> +</g></svg> +<svg class="func_g" x="176.25715283520276" y="552" width="26.325931983355638" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:914:_load_unlocked 0.00% (25 3 7.6069e-05 0.065515945)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_load_unlocked</text> +</g></svg> +<svg class="func_g" x="176.25715283520276" y="576" width="26.325931983355638" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.00% (35 3 9.068100000000001e-05 0.065598707)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="176.25715283520276" y="600" width="26.325931983355638" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1360:_find_and_load 0.00% (35 3 9.147400000000001e-05 0.06590635)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load</text> +</g></svg> +<svg class="func_g" x="176.65334868247058" y="624" width="5.455022838968683" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/pyray/__init__.py:1:&lt;module&gt; 0.00% (3 3 1.8344000000000003e-05 0.032317813)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="176.65334868247058" y="648" width="5.455022838968683" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.04% (1 1 0.0030612770000000003 0.06408074700000001)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="176.84969593219378" y="672" width="5.258675589245444" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="183.10837152143927" y="624" width="2.1555375383179523" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/raylib/__init__.py:1:&lt;module&gt; 0.00% (6 6 2.1066e-05 0.015798561000000003)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="183.10837152143927" y="648" width="2.1555375383179523" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.01% (1 1 0.001155762 0.017120984000000002)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="183.20435586301383" y="672" width="2.059553196743389" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="186.38683083870316" y="624" width="1" height="23"><g> + <title>/usr/lib/python3.14/logging/__init__.py:1:&lt;module&gt; 0.00% (4 4 1.4734000000000002e-05 0.009679146000000001)</title> + <rect height="100%" width="100%" fill="rgb(225, 225, 225)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="186.38683083870316" y="648" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 5.4665000000000006e-05 0.011535922)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="186.44563660308984" y="672" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="188.47037937957361" y="624" width="1" height="23"><g> + <title>/usr/lib/python3.14/traceback.py:1:&lt;module&gt; 0.00% (5 5 1.8323e-05 0.008014682)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="188.47037937957361" y="648" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 3.193e-05 0.008218445000000001)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="188.51907267351976" y="672" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="190.18904125226814" y="624" width="12.183934133447247" height="23"><g> + <title>prim-rlib.py:1:&lt;module&gt; 0.00% (3 3 1.8064000000000002e-05 0.06600688)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="190.18904125226814" y="648" width="12.183934133447247" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 3.51% (1 1 0.273379621 7.795185733)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="204.19969266725724" y="384" width="930.3505573061938" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="204.81633476855356" y="408" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.00% (8 8 5.641000000000001e-06 0.00011263000000000001)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="204.81633476855356" y="432" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1360:_find_and_load 0.00% (35 3 9.147400000000001e-05 0.06590635)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load</text> +</g></svg> +<svg class="func_g" x="206.37056651605837" y="408" width="9.55345849654859" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1409:_handle_fromlist 0.00% (1 1 3.53e-07 0.0007647740000000001)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_handle_fromlist</text> +</g></svg> +<svg class="func_g" x="206.37056651605837" y="432" width="9.46558959665046" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/cffi/api.py:1:&lt;module&gt; 0.00% (1 1 2.297e-06 0.00076751)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="206.37056651605837" y="456" width="9.46558959665046" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 1.2559000000000001e-05 0.001159524)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="206.68890616958046" y="480" width="9.147249943128372" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="216.924025012607" y="408" width="897.3549058990852" height="23"><g> + <title>&lt;frozen importlib._bootstrap_external&gt;:753:exec_module 0.00% (25 3 1.1858e-05 0.065100789)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">exec_module</text> +</g></svg> +<svg class="func_g" x="216.924025012607" y="432" width="897.3549058990852" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:914:_load_unlocked 0.00% (25 3 7.6069e-05 0.065515945)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_load_unlocked</text> +</g></svg> +<svg class="func_g" x="216.924025012607" y="456" width="897.3549058990852" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.00% (35 3 9.068100000000001e-05 0.065598707)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="216.924025012607" y="480" width="897.3549058990852" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1360:_find_and_load 0.00% (35 3 9.147400000000001e-05 0.06590635)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load</text> +</g></svg> +<svg class="func_g" x="216.924025012607" y="504" width="9.780337720382683" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/cffi/__init__.py:1:&lt;module&gt; 0.00% (1 1 3.2010000000000004e-06 0.001641737)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="216.924025012607" y="528" width="9.780337720382683" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 6.253e-06 0.0016484960000000002)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="217.25193859483423" y="552" width="9.452424138155447" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="227.70436273298967" y="504" width="1.2448166753281344" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/cffi/api.py:1:&lt;module&gt; 0.00% (2 2 6.836e-06 0.00034186300000000003)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="227.70436273298967" y="528" width="1.2448166753281344" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 1.2559000000000001e-05 0.001159524)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="227.77264499803024" y="552" width="1.1765344102875401" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="229.94917940831783" y="504" width="211.21239365633704" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/pyray/__init__.py:1:&lt;module&gt; 0.00% (3 3 1.8344000000000003e-05 0.032317813)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="229.94917940831783" y="528" width="211.21239365633704" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.04% (1 1 0.0030612770000000003 0.06408074700000001)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="229.94917940831783" y="552" width="5.455022838968682" height="23"><g> + <title>/usr/lib/python3.14/dataclasses.py:478:add_fns_to_class 0.03% (5 5 0.0020397180000000003 0.0020422960000000003)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">add_fns_to_class</text> +</g></svg> +<svg class="func_g" x="229.94917940831783" y="576" width="5.455022838968682" height="23"><g> + <title>/usr/lib/python3.14/dataclasses.py:986:_process_class 0.00% (5 5 8.014900000000001e-05 0.0022038490000000003)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_process_class</text> +</g></svg> +<svg class="func_g" x="229.94917940831783" y="600" width="5.455022838968682" height="23"><g> + <title>/usr/lib/python3.14/dataclasses.py:1440:wrap 0.00% (5 5 0.00023698000000000002 0.004191001000000001)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">wrap</text> +</g></svg> +<svg class="func_g" x="229.94917940831783" y="624" width="5.455022838968682" height="23"><g> + <title>/usr/lib/python3.14/_colorize.py:1:&lt;module&gt; 0.00% (5 5 1.8024000000000002e-05 0.004209025)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="229.94917940831783" y="648" width="5.455022838968681" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 6.2558e-05 0.004543728)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="230.14552665804104" y="672" width="5.258675589245441" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="236.40420224728652" y="552" width="204.75737081736838" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="442.1615730646549" y="504" width="102.74001626086685" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/raylib/__init__.py:1:&lt;module&gt; 0.00% (6 6 2.1066e-05 0.015798561000000003)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="442.1615730646549" y="528" width="102.74001626086684" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.01% (1 1 0.001155762 0.017120984000000002)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="442.1615730646549" y="552" width="2.155537538317952" height="23"><g> + <title>/usr/lib/python3.14/dataclasses.py:478:add_fns_to_class 0.03% (5 5 0.0020397180000000003 0.0020422960000000003)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">add_fns_to_class</text> +</g></svg> +<svg class="func_g" x="442.1615730646549" y="576" width="2.155537538317952" height="23"><g> + <title>/usr/lib/python3.14/dataclasses.py:986:_process_class 0.00% (5 5 8.014900000000001e-05 0.0022038490000000003)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_process_class</text> +</g></svg> +<svg class="func_g" x="442.1615730646549" y="600" width="2.155537538317952" height="23"><g> + <title>/usr/lib/python3.14/dataclasses.py:1440:wrap 0.00% (5 5 0.00023698000000000002 0.004191001000000001)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">wrap</text> +</g></svg> +<svg class="func_g" x="442.1615730646549" y="624" width="2.155537538317952" height="23"><g> + <title>/usr/lib/python3.14/_colorize.py:1:&lt;module&gt; 0.00% (5 5 1.8024000000000002e-05 0.004209025)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="442.1615730646549" y="648" width="2.155537538317952" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 6.2558e-05 0.004543728)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="442.25755740622935" y="672" width="2.0595531967433884" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="445.31711060297283" y="552" width="99.5844787225489" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="547.3789554463033" y="504" width="1" height="23"><g> + <title>/usr/lib/python3.14/codeop.py:1:&lt;module&gt; 0.00% (1 1 3.485e-06 0.000188974)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="547.3789554463033" y="528" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 6.5680000000000005e-06 0.000211534)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="547.4167003112162" y="552" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="548.6198384503236" y="504" width="1" height="23"><g> + <title>/usr/lib/python3.14/heapq.py:1:&lt;module&gt; 0.00% (1 1 3.9860000000000005e-06 0.00020146)</title> + <rect height="100%" width="100%" fill="rgb(225, 225, 225)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="548.6198384503236" y="528" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 9.691000000000001e-06 0.00021115100000000003)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="548.6600772158966" y="552" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="549.9427097976517" y="504" width="62.557355852302265" height="23"><g> + <title>/usr/lib/python3.14/logging/__init__.py:1:&lt;module&gt; 0.00% (4 4 1.4734000000000002e-05 0.009679146000000001)</title> + <rect height="100%" width="100%" fill="rgb(225, 225, 225)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="549.9427097976517" y="528" width="62.557355852302265" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 5.4665000000000006e-05 0.011535922)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="549.9427097976517" y="552" width="1" height="23"><g> + <title>/usr/lib/python3.14/dataclasses.py:478:add_fns_to_class 0.03% (5 5 0.0020397180000000003 0.0020422960000000003)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">add_fns_to_class</text> +</g></svg> +<svg class="func_g" x="549.9427097976517" y="576" width="1" height="23"><g> + <title>/usr/lib/python3.14/dataclasses.py:986:_process_class 0.00% (5 5 8.014900000000001e-05 0.0022038490000000003)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_process_class</text> +</g></svg> +<svg class="func_g" x="549.9427097976517" y="600" width="1" height="23"><g> + <title>/usr/lib/python3.14/dataclasses.py:1440:wrap 0.00% (5 5 0.00023698000000000002 0.004191001000000001)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">wrap</text> +</g></svg> +<svg class="func_g" x="549.9427097976517" y="624" width="1" height="23"><g> + <title>/usr/lib/python3.14/_colorize.py:1:&lt;module&gt; 0.00% (5 5 1.8024000000000002e-05 0.004209025)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="549.9427097976517" y="648" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 6.2558e-05 0.004543728)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="550.0015155620383" y="672" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="551.8759813495266" y="552" width="60.624084300427384" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="613.500065649954" y="504" width="3.5706235978415366" height="23"><g> + <title>/usr/lib/python3.14/random.py:1:&lt;module&gt; 0.00% (3 3 1.0149e-05 0.0006960600000000001)</title> + <rect height="100%" width="100%" fill="rgb(225, 225, 225)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="613.500065649954" y="528" width="3.5706235978415366" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 3.0451e-05 0.0007973850000000001)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="613.6390937208599" y="552" width="3.4315955269354834" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="618.4405035603645" y="504" width="51.62778306237364" height="23"><g> + <title>/usr/lib/python3.14/traceback.py:1:&lt;module&gt; 0.00% (5 5 1.8323e-05 0.008014682)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="618.4405035603645" y="528" width="51.62778306237364" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 3.193e-05 0.008218445000000001)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="618.4405035603645" y="552" width="1" height="23"><g> + <title>/usr/lib/python3.14/dataclasses.py:478:add_fns_to_class 0.03% (5 5 0.0020397180000000003 0.0020422960000000003)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">add_fns_to_class</text> +</g></svg> +<svg class="func_g" x="618.4405035603645" y="576" width="1" height="23"><g> + <title>/usr/lib/python3.14/dataclasses.py:986:_process_class 0.00% (5 5 8.014900000000001e-05 0.0022038490000000003)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_process_class</text> +</g></svg> +<svg class="func_g" x="618.4405035603645" y="600" width="1" height="23"><g> + <title>/usr/lib/python3.14/dataclasses.py:1440:wrap 0.00% (5 5 0.00023698000000000002 0.004191001000000001)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">wrap</text> +</g></svg> +<svg class="func_g" x="618.4405035603645" y="624" width="1" height="23"><g> + <title>/usr/lib/python3.14/_colorize.py:1:&lt;module&gt; 0.00% (5 5 1.8024000000000002e-05 0.004209025)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="618.4405035603645" y="648" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 6.2558e-05 0.004543728)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="618.4891968543108" y="672" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="620.0413221354665" y="552" width="50.02696448727169" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="671.0682866227382" y="504" width="2.874162629991833" height="23"><g> + <title>/usr/lib/python3.14/warnings.py:1:&lt;module&gt; 0.00% (1 1 3.4540000000000003e-06 0.0005899960000000001)</title> + <rect height="100%" width="100%" fill="rgb(225, 225, 225)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="671.0682866227382" y="528" width="2.874162629991833" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 1.3858e-05 0.0006121060000000001)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="671.1861299203308" y="552" width="2.7563193323992587" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="674.9424492527302" y="504" width="432.4290195498873" height="23"><g> + <title>prim-rlib.py:1:&lt;module&gt; 0.00% (3 3 1.8064000000000002e-05 0.06600688)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="674.9424492527302" y="528" width="432.4290195498873" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 3.51% (1 1 0.273379621 7.795185733)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="1108.3714688026175" y="504" width="1.001189291586622" height="23"><g> + <title>~:0:&lt;built-in method _imp.create_dynamic&gt; 0.00% (1 1 5.150000000000001e-06 0.000304761)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method _imp.create_dynamic&gt;</text> +</g></svg> +<svg class="func_g" x="1108.3714688026175" y="528" width="1.0011892915866225" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.02% (7 6 0.0012711760000000002 0.001416058)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="1108.3988095256484" y="552" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap_external&gt;:753:exec_module 0.00% (25 3 1.1858e-05 0.065100789)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">exec_module</text> +</g></svg> +<svg class="func_g" x="1110.372658094204" y="504" width="3.906272817488216" height="23"><g> + <title>~:0:&lt;built-in method builtins.__import__&gt; 0.00% (1 1 3.802e-06 0.000747176)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.__import__&gt;</text> +</g></svg> +<svg class="func_g" x="1110.4691581915436" y="528" width="3.809772720148538" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (9 8 1.0393e-05 0.0008598270000000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="1110.534870447919" y="552" width="3.639373311701881" height="23"><g> + <title>&lt;frozen importlib._bootstrap_external&gt;:753:exec_module 0.00% (25 3 1.1858e-05 0.065100789)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">exec_module</text> +</g></svg> +<svg class="func_g" x="1115.2789309116922" y="408" width="18.589750560994972" height="23"><g> + <title>&lt;frozen importlib._bootstrap_external&gt;:1051:create_module 0.00% (7 6 4.126e-06 0.001419604)</title> + <rect height="100%" width="100%" fill="rgb(204, 204, 204)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">create_module</text> +</g></svg> +<svg class="func_g" x="1115.2789309116922" y="432" width="18.589750560994972" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:809:module_from_spec 0.00% (7 6 9.649e-06 0.001428973)</title> + <rect height="100%" width="100%" fill="rgb(225, 225, 225)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">module_from_spec</text> +</g></svg> +<svg class="func_g" x="1115.2789309116922" y="456" width="18.589750560994972" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:914:_load_unlocked 0.00% (35 34 5.3604000000000004e-05 0.0019698510000000003)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_load_unlocked</text> +</g></svg> +<svg class="func_g" x="1115.2789309116922" y="480" width="18.589750560994972" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.00% (35 3 9.068100000000001e-05 0.065598707)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="1115.2789309116922" y="504" width="18.589750560994972" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1360:_find_and_load 0.00% (35 3 9.147400000000001e-05 0.06590635)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load</text> +</g></svg> +<svg class="func_g" x="1115.5629606687014" y="528" width="3.6275562479605385" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/pyray/__init__.py:1:&lt;module&gt; 0.00% (3 3 1.8344000000000003e-05 0.032317813)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="1115.5629606687014" y="552" width="3.6275562479605385" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.04% (1 1 0.0030612770000000003 0.06408074700000001)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="1115.7037205025383" y="576" width="3.486796414123636" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="1120.1905169166619" y="528" width="1.2621806018970312" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/raylib/__init__.py:1:&lt;module&gt; 0.00% (6 6 2.1066e-05 0.015798561000000003)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="1120.1905169166619" y="552" width="1.2621806018970312" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.01% (1 1 0.001155762 0.017120984000000002)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="1120.2593273532227" y="576" width="1.193370165336173" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="1122.5408191968802" y="528" width="1" height="23"><g> + <title>/usr/lib/python3.14/logging/__init__.py:1:&lt;module&gt; 0.00% (4 4 1.4734000000000002e-05 0.009679146000000001)</title> + <rect height="100%" width="100%" fill="rgb(225, 225, 225)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="1122.5408191968802" y="552" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 5.4665000000000006e-05 0.011535922)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="1122.5829765972787" y="576" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="1125.266594611513" y="528" width="8.451461024060679" height="23"><g> + <title>prim-rlib.py:1:&lt;module&gt; 0.00% (3 3 1.8064000000000002e-05 0.06600688)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="1125.266594611513" y="552" width="8.45146102406068" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 3.51% (1 1 0.273379621 7.795185733)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="1135.550249973451" y="336" width="6.807039454186585" height="23"><g> + <title>prim-rlib.py:20:draw_vertex 0.16% (4999 4999 0.012091621 0.05454823)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">draw_vertex</text> +</g></svg> +<svg class="func_g" x="1135.550249973451" y="360" width="6.807039454186585" height="23"><g> + <title>prim-rlib.py:1:&lt;module&gt; 0.15% (4999 4999 0.011958721 0.06650695100000001)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="1135.550249973451" y="384" width="6.807039454186585" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 3.51% (1 1 0.273379621 7.795185733)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="1135.7877225221237" y="408" width="6.569566905513888" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="1135.8911397416236" y="432" width="6.301394208393777" height="23"><g> + <title>&lt;frozen importlib._bootstrap_external&gt;:753:exec_module 0.00% (25 3 1.1858e-05 0.065100789)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">exec_module</text> +</g></svg> +<svg class="func_g" x="1135.8911397416236" y="456" width="6.301394208393777" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:914:_load_unlocked 0.00% (25 3 7.6069e-05 0.065515945)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_load_unlocked</text> +</g></svg> +<svg class="func_g" x="1135.8911397416236" y="480" width="6.301394208393777" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.00% (35 3 9.068100000000001e-05 0.065598707)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="1135.8911397416236" y="504" width="6.301394208393777" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1360:_find_and_load 0.00% (35 3 9.147400000000001e-05 0.06590635)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load</text> +</g></svg> +<svg class="func_g" x="1135.9970018972635" y="528" width="1" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/pyray/__init__.py:1:&lt;module&gt; 0.00% (3 3 1.8344000000000003e-05 0.032317813)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="1135.9970018972635" y="552" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.04% (1 1 0.0030612770000000003 0.06408074700000001)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="1136.0494652010893" y="576" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="1139.6136919847565" y="528" width="2.522701453858185" height="23"><g> + <title>prim-rlib.py:1:&lt;module&gt; 0.00% (3 3 1.8064000000000002e-05 0.06600688)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="1139.6136919847565" y="552" width="2.522701453858185" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 3.51% (1 1 0.273379621 7.795185733)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="1143.3572894276374" y="336" width="7.636620916694234" height="23"><g> + <title>prim-rlib.py:30:draw_edge 0.35% (27499 27499 0.027148397 0.060344563000000004)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">draw_edge</text> +</g></svg> +<svg class="func_g" x="1143.3572894276374" y="360" width="7.636620916694238" height="23"><g> + <title>prim-rlib.py:1:&lt;module&gt; 0.49% (27499 27499 0.037888074 0.09823263700000001)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="1143.3572894276374" y="384" width="7.636620916694238" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 3.51% (1 1 0.273379621 7.795185733)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="1143.6199959751123" y="408" width="7.3739143692196425" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="1143.7344023805517" y="432" width="7.077245454091791" height="23"><g> + <title>&lt;frozen importlib._bootstrap_external&gt;:753:exec_module 0.00% (25 3 1.1858e-05 0.065100789)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">exec_module</text> +</g></svg> +<svg class="func_g" x="1143.7344023805517" y="456" width="7.077245454091791" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:914:_load_unlocked 0.00% (25 3 7.6069e-05 0.065515945)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_load_unlocked</text> +</g></svg> +<svg class="func_g" x="1143.7344023805517" y="480" width="7.077245454091791" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.00% (35 3 9.068100000000001e-05 0.065598707)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="1143.7344023805517" y="504" width="7.077245454091791" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1360:_find_and_load 0.00% (35 3 9.147400000000001e-05 0.06590635)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load</text> +</g></svg> +<svg class="func_g" x="1143.8515135227528" y="528" width="1" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/pyray/__init__.py:1:&lt;module&gt; 0.00% (3 3 1.8344000000000003e-05 0.032317813)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="1143.8515135227528" y="552" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.04% (1 1 0.0030612770000000003 0.06408074700000001)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="1143.9095516138677" y="576" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="1147.8525156237597" y="528" width="2.897026169548248" height="23"><g> + <title>prim-rlib.py:1:&lt;module&gt; 0.00% (3 3 1.8064000000000002e-05 0.06600688)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="1147.8525156237597" y="552" width="2.897026169548248" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 3.51% (1 1 0.273379621 7.795185733)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="1151.9939103443317" y="288" width="19.65595703318924" height="23"><g> + <title>~:0:&lt;built-in method raylib._raylib_cffi.EndTextureMode&gt; 1.72% (2499 2499 0.134181493 0.134181493)</title> + <rect height="100%" width="100%" fill="rgb(230, 230, 255)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method raylib._raylib_cffi.EndTextureMode&gt;</text> +</g></svg> +<svg class="func_g" x="1151.9939103443317" y="312" width="19.65595703318924" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/pyray/__init__.py:47:wrapped_func 1.72% (2499 2499 0.134181493 0.134181493)</title> + <rect height="100%" width="100%" fill="rgb(225, 225, 225)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">wrapped_func</text> +</g></svg> +<svg class="func_g" x="1151.9939103443317" y="336" width="19.30830588079342" height="23"><g> + <title>prim-rlib.py:1:&lt;module&gt; 0.87% (12501 12501 0.068034142 6.711549689000001)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="1151.9939103443317" y="360" width="19.30830588079342" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 3.51% (1 1 0.273379621 7.795185733)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="1152.6116432487236" y="384" width="18.690572976401533" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="1152.8806605297643" y="408" width="17.992980349394625" height="23"><g> + <title>&lt;frozen importlib._bootstrap_external&gt;:753:exec_module 0.00% (25 3 1.1858e-05 0.065100789)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">exec_module</text> +</g></svg> +<svg class="func_g" x="1152.8806605297643" y="432" width="17.992980349394625" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:914:_load_unlocked 0.00% (25 3 7.6069e-05 0.065515945)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_load_unlocked</text> +</g></svg> +<svg class="func_g" x="1152.8806605297643" y="456" width="17.992980349394625" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.00% (35 3 9.068100000000001e-05 0.065598707)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="1152.8806605297643" y="480" width="17.992980349394625" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1360:_find_and_load 0.00% (35 3 9.147400000000001e-05 0.06590635)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load</text> +</g></svg> +<svg class="func_g" x="1153.1560377775102" y="504" width="3.486585197171026" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/pyray/__init__.py:1:&lt;module&gt; 0.00% (3 3 1.8344000000000003e-05 0.032317813)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="1153.1560377775102" y="528" width="3.486585197171026" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.04% (1 1 0.0030612770000000003 0.06408074700000001)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="1153.2925095896308" y="552" width="3.350113385050486" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="1157.6426229746812" y="504" width="1.1932669119412096" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/raylib/__init__.py:1:&lt;module&gt; 0.00% (6 6 2.1066e-05 0.015798561000000003)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="1157.6426229746812" y="528" width="1.1932669119412096" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.01% (1 1 0.001155762 0.017120984000000002)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="1157.7093372120762" y="552" width="1.1265526745462817" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="1159.9213270798884" y="504" width="1" height="23"><g> + <title>/usr/lib/python3.14/logging/__init__.py:1:&lt;module&gt; 0.00% (4 4 1.4734000000000002e-05 0.009679146000000001)</title> + <rect height="100%" width="100%" fill="rgb(225, 225, 225)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="1159.9213270798884" y="528" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.00% (1 1 5.4665000000000006e-05 0.011535922)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="1159.9622002229567" y="552" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="1162.5640661349767" y="504" width="8.163537480690424" height="23"><g> + <title>prim-rlib.py:1:&lt;module&gt; 0.00% (3 3 1.8064000000000002e-05 0.06600688)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="1162.5640661349767" y="528" width="8.163537480690424" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 3.51% (1 1 0.273379621 7.795185733)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="1172.649867377521" y="288" width="11.071391858211534" height="23"><g> + <title>~:0:&lt;built-in method raylib._raylib_cffi.InitWindow&gt; 1.01% (1 1 0.078415993 0.078415993)</title> + <rect height="100%" width="100%" fill="rgb(198, 198, 255)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method raylib._raylib_cffi.InitWindow&gt;</text> +</g></svg> +<svg class="func_g" x="1172.649867377521" y="312" width="11.071391858211534" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/pyray/__init__.py:47:wrapped_func 1.01% (1 1 0.078415993 0.078415993)</title> + <rect height="100%" width="100%" fill="rgb(225, 225, 225)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">wrapped_func</text> +</g></svg> +<svg class="func_g" x="1172.649867377521" y="336" width="10.868223673663813" height="23"><g> + <title>prim-rlib.py:1:&lt;module&gt; 0.87% (12501 12501 0.068034142 6.711549689000001)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="1172.649867377521" y="360" width="10.868223673663813" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 3.51% (1 1 0.273379621 7.795185733)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="1173.0108719991247" y="384" width="10.507219052060268" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="1173.1680863567478" y="408" width="10.099544213055271" height="23"><g> + <title>&lt;frozen importlib._bootstrap_external&gt;:753:exec_module 0.00% (25 3 1.1858e-05 0.065100789)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">exec_module</text> +</g></svg> +<svg class="func_g" x="1173.1680863567478" y="432" width="10.099544213055271" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:914:_load_unlocked 0.00% (25 3 7.6069e-05 0.065515945)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_load_unlocked</text> +</g></svg> +<svg class="func_g" x="1173.1680863567478" y="456" width="10.099544213055271" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.00% (35 3 9.068100000000001e-05 0.065598707)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="1173.1680863567478" y="480" width="10.099544213055271" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1360:_find_and_load 0.00% (35 3 9.147400000000001e-05 0.06590635)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load</text> +</g></svg> +<svg class="func_g" x="1173.329017494484" y="504" width="1.6219713728723137" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/pyray/__init__.py:1:&lt;module&gt; 0.00% (3 3 1.8344000000000003e-05 0.032317813)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="1173.329017494484" y="528" width="1.6219713728723137" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.04% (1 1 0.0030612770000000003 0.06408074700000001)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="1173.408771955585" y="552" width="1.542216911771321" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="1175.9509888673565" y="504" width="1" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/raylib/__init__.py:1:&lt;module&gt; 0.00% (6 6 2.1066e-05 0.015798561000000003)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="1175.9509888673565" y="528" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 0.01% (1 1 0.001155762 0.017120984000000002)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="1175.9899768310138" y="552" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="1178.827092298458" y="504" width="4.355193737045823" height="23"><g> + <title>prim-rlib.py:1:&lt;module&gt; 0.00% (3 3 1.8064000000000002e-05 0.06600688)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="1178.827092298458" y="528" width="4.355193737045823" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 3.51% (1 1 0.273379621 7.795185733)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="1186.3345412650783" y="288" width="3.15925973510814" height="23"><g> + <title>~:0:&lt;method 'append' of 'list' objects&gt; 0.35% (110296 110296 0.027018631 0.027018631)</title> + <rect height="100%" width="100%" fill="rgb(166, 166, 255)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;method 'append' of 'list' objects&gt;</text> +</g></svg> +<svg class="func_g" x="1186.3345412650783" y="312" width="1" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/pyray/__init__.py:117:func 0.16% (24990 24990 0.012482049 0.012482049)</title> + <rect height="100%" width="100%" fill="rgb(204, 204, 204)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">func</text> +</g></svg> +<svg class="func_g" x="1186.3345412650783" y="336" width="1" height="23"><g> + <title>prim-rlib.py:1:&lt;module&gt; 1.47% (7497 7497 0.114883257 0.183965549)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="1186.3345412650783" y="360" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 3.51% (1 1 0.273379621 7.795185733)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="1186.3929887226025" y="384" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="1186.4184420795389" y="408" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap_external&gt;:753:exec_module 0.00% (25 3 1.1858e-05 0.065100789)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">exec_module</text> +</g></svg> +<svg class="func_g" x="1186.4184420795389" y="432" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:914:_load_unlocked 0.00% (25 3 7.6069e-05 0.065515945)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_load_unlocked</text> +</g></svg> +<svg class="func_g" x="1186.4184420795389" y="456" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.00% (35 3 9.068100000000001e-05 0.065598707)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="1186.4184420795389" y="480" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1360:_find_and_load 0.00% (35 3 9.147400000000001e-05 0.06590635)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load</text> +</g></svg> +<svg class="func_g" x="1188.3622820462804" y="312" width="1.1315189539057156" height="23"><g> + <title>prim-rlib.py:1:&lt;module&gt; 0.18% (79998 79998 0.013846388000000001 0.013846388000000001)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="1188.3622820462804" y="336" width="1.1315189539057156" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 3.51% (1 1 0.273379621 7.795185733)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="1188.4271180499277" y="360" width="1.0666829502581727" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="1188.4553535628668" y="384" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap_external&gt;:753:exec_module 0.00% (25 3 1.1858e-05 0.065100789)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">exec_module</text> +</g></svg> +<svg class="func_g" x="1188.4553535628668" y="408" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:914:_load_unlocked 0.00% (25 3 7.6069e-05 0.065515945)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_load_unlocked</text> +</g></svg> +<svg class="func_g" x="1188.4553535628668" y="432" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.00% (35 3 9.068100000000001e-05 0.065598707)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="1188.4553535628668" y="456" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1360:_find_and_load 0.00% (35 3 9.147400000000001e-05 0.06590635)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load</text> +</g></svg> +<svg class="func_g" x="1191.4870185114853" y="288" width="1" height="23"><g> + <title>~:0:&lt;method 'getrandbits' of '_random.Random' objects&gt; 0.12% (82366 82366 0.009650984000000001 0.009650984000000001)</title> + <rect height="100%" width="100%" fill="rgb(198, 198, 255)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;method 'getrandbits' of '_random.Random' objects&gt;</text> +</g></svg> +<svg class="func_g" x="1191.4870185114853" y="312" width="1" height="23"><g> + <title>/usr/lib/python3.14/random.py:245:_randbelow_with_getrandbits 0.12% (82366 82366 0.009650984000000001 0.009650984000000001)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_randbelow_with_getrandbits</text> +</g></svg> +<svg class="func_g" x="1191.4870185114853" y="336" width="1" height="23"><g> + <title>/usr/lib/python3.14/random.py:347:choice 0.30% (50019 50019 0.023054281000000003 0.038371478)</title> + <rect height="100%" width="100%" fill="rgb(225, 225, 225)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">choice</text> +</g></svg> +<svg class="func_g" x="1191.4870185114853" y="360" width="1" height="23"><g> + <title>prim-rlib.py:1:&lt;module&gt; 0.32% (50019 50019 0.024795004000000002 0.071499593)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="1191.4870185114853" y="384" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 3.51% (1 1 0.273379621 7.795185733)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="1191.5322094474773" y="408" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="1191.5518897051445" y="432" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap_external&gt;:753:exec_module 0.00% (25 3 1.1858e-05 0.065100789)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">exec_module</text> +</g></svg> +<svg class="func_g" x="1191.5518897051445" y="456" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:914:_load_unlocked 0.00% (25 3 7.6069e-05 0.065515945)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_load_unlocked</text> +</g></svg> +<svg class="func_g" x="1191.5518897051445" y="480" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.00% (35 3 9.068100000000001e-05 0.065598707)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="1191.5518897051445" y="504" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1360:_find_and_load 0.00% (35 3 9.147400000000001e-05 0.06590635)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load</text> +</g></svg> +<svg class="func_g" x="1193.0529712470527" y="288" width="3.162175366895071" height="23"><g> + <title>~:0:&lt;method 'new' of '_cffi_backend.FFI' objects&gt; 0.35% (7497 7497 0.027037571000000003 0.027037571000000003)</title> + <rect height="100%" width="100%" fill="rgb(166, 166, 255)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;method 'new' of '_cffi_backend.FFI' objects&gt;</text> +</g></svg> +<svg class="func_g" x="1193.0529712470527" y="312" width="3.162175366895071" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/pyray/__init__.py:117:func 0.35% (7497 7497 0.027037571000000003 0.027037571000000003)</title> + <rect height="100%" width="100%" fill="rgb(204, 204, 204)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">func</text> +</g></svg> +<svg class="func_g" x="1193.0529712470527" y="336" width="3.162175366895071" height="23"><g> + <title>prim-rlib.py:1:&lt;module&gt; 1.47% (7497 7497 0.114883257 0.183965549)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="1193.0529712470527" y="360" width="3.162175366895071" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 3.51% (1 1 0.273379621 7.795185733)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="1193.1795752431256" y="384" width="3.035571370822111" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +<svg class="func_g" x="1193.23471017693" y="408" width="2.8926001714862886" height="23"><g> + <title>&lt;frozen importlib._bootstrap_external&gt;:753:exec_module 0.00% (25 3 1.1858e-05 0.065100789)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">exec_module</text> +</g></svg> +<svg class="func_g" x="1193.23471017693" y="432" width="2.8926001714862886" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:914:_load_unlocked 0.00% (25 3 7.6069e-05 0.065515945)</title> + <rect height="100%" width="100%" fill="rgb(232, 232, 232)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_load_unlocked</text> +</g></svg> +<svg class="func_g" x="1193.23471017693" y="456" width="2.8926001714862886" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1308:_find_and_load_unlocked 0.00% (35 3 9.068100000000001e-05 0.065598707)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load_unlocked</text> +</g></svg> +<svg class="func_g" x="1193.23471017693" y="480" width="2.8926001714862886" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:1360:_find_and_load 0.00% (35 3 9.147400000000001e-05 0.06590635)</title> + <rect height="100%" width="100%" fill="rgb(211, 211, 211)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_find_and_load</text> +</g></svg> +<svg class="func_g" x="1195.2193184704158" y="504" width="1" height="23"><g> + <title>prim-rlib.py:1:&lt;module&gt; 0.00% (3 3 1.8064000000000002e-05 0.06600688)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="1195.2193184704158" y="528" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 3.51% (1 1 0.273379621 7.795185733)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="1198.2860022889106" y="288" width="1" height="23"><g> + <title>~:0:&lt;method 'typeof' of '_cffi_backend.FFI' objects&gt; 0.14% (10824 10824 0.010946993 0.010946993)</title> + <rect height="100%" width="100%" fill="rgb(214, 214, 255)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;method 'typeof' of '_cffi_backend.FFI' objects&gt;</text> +</g></svg> +<svg class="func_g" x="1198.700766304645" y="312" width="1" height="23"><g> + <title>/home/andrew/venv/lib/python3.14/site-packages/pyray/__init__.py:117:func 0.11% (7497 7497 0.008252678000000001 0.008252678000000001)</title> + <rect height="100%" width="100%" fill="rgb(204, 204, 204)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">func</text> +</g></svg> +<svg class="func_g" x="1198.700766304645" y="336" width="1" height="23"><g> + <title>prim-rlib.py:1:&lt;module&gt; 1.47% (7497 7497 0.114883257 0.183965549)</title> + <rect height="100%" width="100%" fill="rgb(190, 190, 190)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;module&gt;</text> +</g></svg> +<svg class="func_g" x="1198.700766304645" y="360" width="1" height="23"><g> + <title>~:0:&lt;built-in method builtins.exec&gt; 3.51% (1 1 0.273379621 7.795185733)</title> + <rect height="100%" width="100%" fill="rgb(197, 197, 197)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">&lt;built-in method builtins.exec&gt;</text> +</g></svg> +<svg class="func_g" x="1198.73940964332" y="384" width="1" height="23"><g> + <title>&lt;frozen importlib._bootstrap&gt;:483:_call_with_frames_removed 0.00% (25 3 9.3775e-05 0.065099298)</title> + <rect height="100%" width="100%" fill="rgb(218, 218, 218)" rx="2" ry="2" /> + <text alignment-baseline="central" x="4.0" y="12.0" font-size="12px" fill="rgb(0,0,0)">_call_with_frames_removed</text> +</g></svg> +</svg> diff --git a/posts/site/index.html b/posts/site/index.html @@ -11,6 +11,7 @@ <h1>Andrew's Blog</h1> <p><a href="feed.xml">RSS Feed</a></p> <ol> +<li><a href="pygame-vs-raylib.html">pygame-vs-raylib</a> - <em>2026/09/20</em></li> <li><a href="easily-hostable-protocols-over-applications.html">easily-hostable-protocols-over-applications</a> - <em>2026/04/25</em></li> <li><a href="config-files-suck.html">config-files-suck</a> - <em>2025/11/19</em></li> <li><a href="you-dont-need-anything.html">you-dont-need-anything</a> - <em>2025/10/17</em></li> diff --git a/posts/site/pygame-vs-raylib.html b/posts/site/pygame-vs-raylib.html @@ -0,0 +1,458 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> + <meta charset="utf-8" /> + <meta name="generator" content="pandoc 3.10.2" /> + <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" /> + <title>pygame-vs-raylib</title> + <style> + /* Default styles provided by pandoc. + ** See https://pandoc.org/MANUAL.html#variables-for-html for config info. + */ + span.smallcaps{font-variant: small-caps;} + div.columns{display: flex; gap: 1.5em;} + div.column{flex: auto;} + @media screen { + div.columns{gap: min(4vw, 1.5em);} + div.column{overflow-x: auto;} + } + div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;} + /* The extra [class] is a hack that increases specificity enough to + override a similar rule in reveal.js */ + ul.task-list[class]{list-style: none;} + ul.task-list li input[type="checkbox"] { + font-size: inherit; + width: 0.8em; + margin: 0 0.8em 0.2em -1.6em; + vertical-align: middle; + } + .display.math{display: block; text-align: center; margin: 0.5rem auto;} + /* CSS for syntax highlighting */ + html { -webkit-text-size-adjust: 100%; } + pre > code.sourceCode { white-space: pre; position: relative; } + pre > code.sourceCode > span { display: inline-block; line-height: 1.25; } + pre > code.sourceCode > span:empty { height: 1.2em; } + .sourceCode { overflow: visible; } + code.sourceCode > span { color: inherit; text-decoration: inherit; } + div.sourceCode { margin: 1em 0; } + pre.sourceCode { margin: 0; } + @media screen { + div.sourceCode { overflow: auto; } + } + @media print { + pre > code.sourceCode { white-space: pre-wrap; } + pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; } + } + pre.numberSource code + { counter-reset: source-line 0; } + pre.numberSource code > span + { position: relative; left: -4em; counter-increment: source-line; } + pre.numberSource code > span > a:first-child::before + { content: counter(source-line); + position: relative; left: -1em; text-align: right; vertical-align: baseline; + border: none; display: inline-block; + -webkit-touch-callout: none; -webkit-user-select: none; + -khtml-user-select: none; -moz-user-select: none; + -ms-user-select: none; user-select: none; + padding: 0 4px; width: 4em; + background-color: #ffffff; + color: #a0a0a0; + } + pre.numberSource { margin-left: 3em; border-left: 1px solid #a0a0a0; padding-left: 4px; } + div.sourceCode + { color: #1f1c1b; background-color: #ffffff; } + @media screen { + pre > code.sourceCode > span > a:first-child::before { text-decoration: underline; } + } + code span { color: #1f1c1b; } /* Normal */ + code span.al { color: #bf0303; background-color: #f7e6e6; font-weight: bold; } /* Alert */ + code span.an { color: #ca60ca; } /* Annotation */ + code span.at { color: #0057ae; } /* Attribute */ + code span.bn { color: #b08000; } /* BaseN */ + code span.bu { color: #644a9b; font-weight: bold; } /* BuiltIn */ + code span.cf { color: #1f1c1b; font-weight: bold; } /* ControlFlow */ + code span.ch { color: #924c9d; } /* Char */ + code span.cn { color: #aa5500; } /* Constant */ + code span.co { color: #898887; } /* Comment */ + code span.cv { color: #0095ff; } /* CommentVar */ + code span.do { color: #607880; } /* Documentation */ + code span.dt { color: #0057ae; } /* DataType */ + code span.dv { color: #b08000; } /* DecVal */ + code span.er { color: #bf0303; text-decoration: underline; } /* Error */ + code span.ex { color: #0095ff; font-weight: bold; } /* Extension */ + code span.fl { color: #b08000; } /* Float */ + code span.fu { color: #644a9b; } /* Function */ + code span.im { color: #ff5500; } /* Import */ + code span.in { color: #b08000; } /* Information */ + code span.kw { color: #1f1c1b; font-weight: bold; } /* Keyword */ + code span.op { color: #1f1c1b; } /* Operator */ + code span.ot { color: #006e28; } /* Other */ + code span.pp { color: #006e28; } /* Preprocessor */ + code span.re { color: #0057ae; background-color: #e0e9f8; } /* RegionMarker */ + code span.sc { color: #3daee9; } /* SpecialChar */ + code span.ss { color: #ff5500; } /* SpecialString */ + code span.st { color: #bf0303; } /* String */ + code span.va { color: #0057ae; } /* Variable */ + code span.vs { color: #bf0303; } /* VerbatimString */ + code span.wa { color: #bf0303; } /* Warning */ + </style> + <link rel="stylesheet" href="style.css" /> +</head> +<body> +<h1 id="pygame-vs.-raylib">PyGame vs. Raylib</h1> +<h2 id="date-20260920">Date: 2026/09/20</h2> +<p>I implemented <a href="https://cp-algorithms.com/graph/mst_prim.html">Prim’s algorithm</a> to create a MST of a graph in Python. I also created a visualization of it, shown below.</p> +<p><video src="videos/prim.mkv" controls=""><a href="videos/prim.mkv">Video</a></video></p> +<p>(This graph has 250 vertices and 1,000 edges. The source code used to generate this visualization can be found <a href="https://git.laack.co/blog/file/python/pygame-vs-raylib/prim.py.html">here</a>)</p> +<p>Prim’s algorithm is worth understanding (albeit out of scope), and the problem it solves is finding the set of edges that minimizes the sum of their weights while guaranteeing there is exactly one path between any two vertices in the connected, weighted, undirected graph. In the case of my implementation, the weight of each edge was its length.</p> +<p>As it relates to the animation, the following two things should be apparent:</p> +<ol type="1"> +<li>The first frame must draw every edge and vertex of the graph in a greyed-out color.</li> +<li>Each subsequent frame only has to draw one additional edge, the newly traversed edge, and one additional vertex, the vertex we are visiting.</li> +</ol> +<p>While we could render each frame from scratch based on the graph’s state, any reasonable rendering program has the ability to additively draw geometries to avoid this re-computation, and I care a bit about performance (even though this is written in Python*). Since PyGame and Raylib both support this, I’ll be using additive rendering in both of my implementations.</p> +<p>* I did rewrite the animation in C++ using Raylib so I could make it <a href="https://git.laack.co/abg/">my X11 wallpaper</a>, but that’s for another blog post.</p> +<h2 id="raylib">Raylib</h2> +<h3 id="implementation">Implementation</h3> +<p>Raylib has 2D rendered textures that can persist across frames. Here’s some Python code that makes use of them to visualize Prim’s algorithm:</p> +<div class="sourceCode" id="cb1"><pre class="sourceCode python"><code class="sourceCode python"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="im">import</span> pyray <span class="im">as</span> pr</span> +<span id="cb1-2"><a href="#cb1-2" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb1-3"><a href="#cb1-3" aria-hidden="true" tabindex="-1"></a><span class="co"># ... (other imports, Vertex class definition, Edge class definition)</span></span> +<span id="cb1-4"><a href="#cb1-4" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb1-5"><a href="#cb1-5" aria-hidden="true" tabindex="-1"></a>pr.init_window(screen_width, screen_height, <span class="st">&quot;prim&quot;</span>)</span> +<span id="cb1-6"><a href="#cb1-6" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb1-7"><a href="#cb1-7" aria-hidden="true" tabindex="-1"></a><span class="co"># ... (other initialization)</span></span> +<span id="cb1-8"><a href="#cb1-8" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb1-9"><a href="#cb1-9" aria-hidden="true" tabindex="-1"></a>texture <span class="op">=</span> pr.load_render_texture(screen_width,screen_height)</span> +<span id="cb1-10"><a href="#cb1-10" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb1-11"><a href="#cb1-11" aria-hidden="true" tabindex="-1"></a><span class="cf">while</span> <span class="op">!</span>done:</span> +<span id="cb1-12"><a href="#cb1-12" aria-hidden="true" tabindex="-1"></a> <span class="cf">if</span> first:</span> +<span id="cb1-13"><a href="#cb1-13" aria-hidden="true" tabindex="-1"></a> start <span class="op">=</span> time.monotonic_ns()</span> +<span id="cb1-14"><a href="#cb1-14" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb1-15"><a href="#cb1-15" aria-hidden="true" tabindex="-1"></a> <span class="co"># After calling begin_texture_mode(texture) all writes will be </span></span> +<span id="cb1-16"><a href="#cb1-16" aria-hidden="true" tabindex="-1"></a> <span class="co"># sent to the texture without having to specify we&#39;re writing to the </span></span> +<span id="cb1-17"><a href="#cb1-17" aria-hidden="true" tabindex="-1"></a> <span class="co"># texture. This is also how begin_drawing() works, but for frames.</span></span> +<span id="cb1-18"><a href="#cb1-18" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb1-19"><a href="#cb1-19" aria-hidden="true" tabindex="-1"></a> pr.begin_texture_mode(texture)</span> +<span id="cb1-20"><a href="#cb1-20" aria-hidden="true" tabindex="-1"></a> pr.clear_background(pr.BLACK)</span> +<span id="cb1-21"><a href="#cb1-21" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb1-22"><a href="#cb1-22" aria-hidden="true" tabindex="-1"></a> <span class="cf">for</span> edge <span class="kw">in</span> edge_list:</span> +<span id="cb1-23"><a href="#cb1-23" aria-hidden="true" tabindex="-1"></a> edge.draw_edge(pr.DARKGRAY)</span> +<span id="cb1-24"><a href="#cb1-24" aria-hidden="true" tabindex="-1"></a> <span class="cf">for</span> vertex <span class="kw">in</span> graph:</span> +<span id="cb1-25"><a href="#cb1-25" aria-hidden="true" tabindex="-1"></a> vertex.draw_vertex(pr.DARKGRAY)</span> +<span id="cb1-26"><a href="#cb1-26" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb1-27"><a href="#cb1-27" aria-hidden="true" tabindex="-1"></a> pr.end_texture_mode()</span> +<span id="cb1-28"><a href="#cb1-28" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb1-29"><a href="#cb1-29" aria-hidden="true" tabindex="-1"></a> source_rec <span class="op">=</span> pr.Rectangle(<span class="dv">0</span>, <span class="dv">0</span>, screen_width, screen_height)</span> +<span id="cb1-30"><a href="#cb1-30" aria-hidden="true" tabindex="-1"></a> dest_rec <span class="op">=</span> pr.Rectangle(<span class="dv">0</span>, <span class="dv">0</span>, screen_width, screen_height)</span> +<span id="cb1-31"><a href="#cb1-31" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb1-32"><a href="#cb1-32" aria-hidden="true" tabindex="-1"></a> pr.begin_drawing()</span> +<span id="cb1-33"><a href="#cb1-33" aria-hidden="true" tabindex="-1"></a> pr.draw_texture_pro(texture.texture, source_rec, dest_rec, pr.Vector2(<span class="dv">0</span>, <span class="dv">0</span>), <span class="dv">0</span>, pr.WHITE)</span> +<span id="cb1-34"><a href="#cb1-34" aria-hidden="true" tabindex="-1"></a> pr.end_drawing()</span> +<span id="cb1-35"><a href="#cb1-35" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb1-36"><a href="#cb1-36" aria-hidden="true" tabindex="-1"></a> first <span class="op">=</span> <span class="va">False</span></span> +<span id="cb1-37"><a href="#cb1-37" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb1-38"><a href="#cb1-38" aria-hidden="true" tabindex="-1"></a> end <span class="op">=</span> time.monotonic_ns()</span> +<span id="cb1-39"><a href="#cb1-39" aria-hidden="true" tabindex="-1"></a> first_times.append(end <span class="op">-</span> start)</span> +<span id="cb1-40"><a href="#cb1-40" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb1-41"><a href="#cb1-41" aria-hidden="true" tabindex="-1"></a> <span class="cf">continue</span></span> +<span id="cb1-42"><a href="#cb1-42" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb1-43"><a href="#cb1-43" aria-hidden="true" tabindex="-1"></a> <span class="co"># ... (perform one step of Prim&#39;s algorithm)</span></span> +<span id="cb1-44"><a href="#cb1-44" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb1-45"><a href="#cb1-45" aria-hidden="true" tabindex="-1"></a> <span class="cf">if</span> <span class="bu">len</span>(to_draw_edge) <span class="op">!=</span> <span class="dv">0</span> <span class="kw">or</span> <span class="bu">len</span>(to_draw_vert) <span class="op">!=</span> <span class="dv">0</span>:</span> +<span id="cb1-46"><a href="#cb1-46" aria-hidden="true" tabindex="-1"></a> start <span class="op">=</span> time.monotonic_ns()</span> +<span id="cb1-47"><a href="#cb1-47" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb1-48"><a href="#cb1-48" aria-hidden="true" tabindex="-1"></a> pr.begin_texture_mode(texture)</span> +<span id="cb1-49"><a href="#cb1-49" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb1-50"><a href="#cb1-50" aria-hidden="true" tabindex="-1"></a> <span class="cf">for</span> edge <span class="kw">in</span> to_draw_edge:</span> +<span id="cb1-51"><a href="#cb1-51" aria-hidden="true" tabindex="-1"></a> edge.draw_edge(pr.WHITE)</span> +<span id="cb1-52"><a href="#cb1-52" aria-hidden="true" tabindex="-1"></a> <span class="cf">for</span> vert <span class="kw">in</span> to_draw_vert:</span> +<span id="cb1-53"><a href="#cb1-53" aria-hidden="true" tabindex="-1"></a> vert.draw_vertex(pr.WHITE)</span> +<span id="cb1-54"><a href="#cb1-54" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb1-55"><a href="#cb1-55" aria-hidden="true" tabindex="-1"></a> pr.end_texture_mode()</span> +<span id="cb1-56"><a href="#cb1-56" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb1-57"><a href="#cb1-57" aria-hidden="true" tabindex="-1"></a> source_rec <span class="op">=</span> pr.Rectangle(<span class="dv">0</span>, <span class="dv">0</span>, screen_width, screen_height)</span> +<span id="cb1-58"><a href="#cb1-58" aria-hidden="true" tabindex="-1"></a> dest_rec <span class="op">=</span> pr.Rectangle(<span class="dv">0</span>, <span class="dv">0</span>, screen_width, screen_height)</span> +<span id="cb1-59"><a href="#cb1-59" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb1-60"><a href="#cb1-60" aria-hidden="true" tabindex="-1"></a> pr.begin_drawing()</span> +<span id="cb1-61"><a href="#cb1-61" aria-hidden="true" tabindex="-1"></a> pr.draw_texture_pro(texture.texture, source_rec, dest_rec, pr.Vector2(<span class="dv">0</span>, <span class="dv">0</span>), <span class="dv">0</span>, pr.WHITE)</span> +<span id="cb1-62"><a href="#cb1-62" aria-hidden="true" tabindex="-1"></a> pr.end_drawing()</span> +<span id="cb1-63"><a href="#cb1-63" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb1-64"><a href="#cb1-64" aria-hidden="true" tabindex="-1"></a> end <span class="op">=</span> time.monotonic_ns()</span> +<span id="cb1-65"><a href="#cb1-65" aria-hidden="true" tabindex="-1"></a> redraw_times.append(end <span class="op">-</span> start)</span> +<span id="cb1-66"><a href="#cb1-66" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb1-67"><a href="#cb1-67" aria-hidden="true" tabindex="-1"></a> to_draw_vert <span class="op">=</span> []</span> +<span id="cb1-68"><a href="#cb1-68" aria-hidden="true" tabindex="-1"></a> to_draw_edge <span class="op">=</span> []</span></code></pre></div> +<p>Before our main iteration loop we initialize our texture. Then on our first iteration of the loop we draw each of the edges and vertices in our graph. On each subsequent iteration we only draw vertices added to <code>to_draw_vert</code> and edges added to <code>to_draw_edge</code>. Both lists are populated with edges and vertices that were visited since the last frame was rendered.</p> +<p>This code is also instrumented to track the amount of time the first frame takes to render, and the amount of time each subsequent frame takes to render as well.</p> +<p>Not included above are our Vertex and Edge classes which both implement draw functions. These functions have the following lines to draw geometries with Raylib:</p> +<div class="sourceCode" id="cb2"><pre class="sourceCode python"><code class="sourceCode python"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a>pr.draw_circle(<span class="bu">int</span>(<span class="va">self</span>.x),<span class="bu">int</span>(<span class="va">self</span>.y), RADIUS, c) <span class="co"># vertex</span></span> +<span id="cb2-2"><a href="#cb2-2" aria-hidden="true" tabindex="-1"></a>pr.draw_line(<span class="bu">int</span>(<span class="va">self</span>.v1.x), <span class="bu">int</span>(<span class="va">self</span>.v1.y), <span class="bu">int</span>(<span class="va">self</span>.v2.x), <span class="bu">int</span>(<span class="va">self</span>.v2.y), c) <span class="co"># edge</span></span></code></pre></div> +<p>Per the code comment in the larger code snippet, Raylib uses global state to track which canvas is being drawn to, so these functions can be called in texture mode or drawing mode with a similar effect.</p> +<h2 id="pygame">PyGame</h2> +<h3 id="implementation-1">Implementation</h3> +<p>PyGame persists frame state across frames by default so we don’t have to mess with rendered textures like we did with Raylib! Here’s a some code that does the PyGame rendering:</p> +<div class="sourceCode" id="cb3"><pre class="sourceCode python"><code class="sourceCode python"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb3-2"><a href="#cb3-2" aria-hidden="true" tabindex="-1"></a><span class="co"># ... (imports and such)</span></span> +<span id="cb3-3"><a href="#cb3-3" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb3-4"><a href="#cb3-4" aria-hidden="true" tabindex="-1"></a>pygame.init()</span> +<span id="cb3-5"><a href="#cb3-5" aria-hidden="true" tabindex="-1"></a>display <span class="op">=</span> pygame.display.set_mode((screen_width,screen_height))</span> +<span id="cb3-6"><a href="#cb3-6" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb3-7"><a href="#cb3-7" aria-hidden="true" tabindex="-1"></a><span class="co"># ... (other initialization)</span></span> +<span id="cb3-8"><a href="#cb3-8" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb3-9"><a href="#cb3-9" aria-hidden="true" tabindex="-1"></a><span class="cf">while</span> <span class="op">!</span>done:</span> +<span id="cb3-10"><a href="#cb3-10" aria-hidden="true" tabindex="-1"></a> <span class="cf">if</span> first:</span> +<span id="cb3-11"><a href="#cb3-11" aria-hidden="true" tabindex="-1"></a> start <span class="op">=</span> time.monotonic_ns()</span> +<span id="cb3-12"><a href="#cb3-12" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb3-13"><a href="#cb3-13" aria-hidden="true" tabindex="-1"></a> display.fill(BLACK)</span> +<span id="cb3-14"><a href="#cb3-14" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb3-15"><a href="#cb3-15" aria-hidden="true" tabindex="-1"></a> <span class="cf">for</span> edge <span class="kw">in</span> edge_list:</span> +<span id="cb3-16"><a href="#cb3-16" aria-hidden="true" tabindex="-1"></a> edge.draw_edge(display, LIGHT_GREY)</span> +<span id="cb3-17"><a href="#cb3-17" aria-hidden="true" tabindex="-1"></a> <span class="cf">for</span> vertex <span class="kw">in</span> graph:</span> +<span id="cb3-18"><a href="#cb3-18" aria-hidden="true" tabindex="-1"></a> vertex.draw_vertex(display, LIGHT_GREY)</span> +<span id="cb3-19"><a href="#cb3-19" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb3-20"><a href="#cb3-20" aria-hidden="true" tabindex="-1"></a> pygame.display.update()</span> +<span id="cb3-21"><a href="#cb3-21" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb3-22"><a href="#cb3-22" aria-hidden="true" tabindex="-1"></a> end <span class="op">=</span> time.monotonic_ns()</span> +<span id="cb3-23"><a href="#cb3-23" aria-hidden="true" tabindex="-1"></a> first_time.append(end <span class="op">-</span> start)</span> +<span id="cb3-24"><a href="#cb3-24" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb3-25"><a href="#cb3-25" aria-hidden="true" tabindex="-1"></a> first <span class="op">=</span> <span class="va">False</span></span> +<span id="cb3-26"><a href="#cb3-26" aria-hidden="true" tabindex="-1"></a> <span class="cf">continue</span></span> +<span id="cb3-27"><a href="#cb3-27" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb3-28"><a href="#cb3-28" aria-hidden="true" tabindex="-1"></a> <span class="co"># ... (perform one step of Prim&#39;s algorithm)</span></span> +<span id="cb3-29"><a href="#cb3-29" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb3-30"><a href="#cb3-30" aria-hidden="true" tabindex="-1"></a> start <span class="op">=</span> time.monotonic_ns()</span> +<span id="cb3-31"><a href="#cb3-31" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb3-32"><a href="#cb3-32" aria-hidden="true" tabindex="-1"></a> <span class="cf">for</span> edge <span class="kw">in</span> to_draw_edge:</span> +<span id="cb3-33"><a href="#cb3-33" aria-hidden="true" tabindex="-1"></a> edge.draw_edge(display, white)</span> +<span id="cb3-34"><a href="#cb3-34" aria-hidden="true" tabindex="-1"></a> <span class="cf">for</span> vert <span class="kw">in</span> to_draw_vert:</span> +<span id="cb3-35"><a href="#cb3-35" aria-hidden="true" tabindex="-1"></a> vert.draw_vertex(display, white)</span> +<span id="cb3-36"><a href="#cb3-36" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb3-37"><a href="#cb3-37" aria-hidden="true" tabindex="-1"></a> pygame.display.update()</span> +<span id="cb3-38"><a href="#cb3-38" aria-hidden="true" tabindex="-1"></a> end <span class="op">=</span> time.monotonic_ns()</span> +<span id="cb3-39"><a href="#cb3-39" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb3-40"><a href="#cb3-40" aria-hidden="true" tabindex="-1"></a> to_draw_vert <span class="op">=</span> []</span> +<span id="cb3-41"><a href="#cb3-41" aria-hidden="true" tabindex="-1"></a> to_draw_edge <span class="op">=</span> []</span></code></pre></div> +<p>I find this code to be more readable than the Raylib code because we don’t have to maintain a standalone texture, and I also like how writing to a display is more explicit in PyGame:</p> +<div class="sourceCode" id="cb4"><pre class="sourceCode python"><code class="sourceCode python"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a>pygame.draw.circle(display, WHITE, (<span class="va">self</span>.x,<span class="va">self</span>.y), RADIUS)</span> +<span id="cb4-2"><a href="#cb4-2" aria-hidden="true" tabindex="-1"></a>pygame.draw.line(display, WHITE, (<span class="va">self</span>.v1.x,<span class="va">self</span>.v1.y), (<span class="va">self</span>.v2.x,<span class="va">self</span>.v2.y), LINE_WIDTH)</span></code></pre></div> +<p>(notice the first parameter is the surface to write to)</p> +<p>Despite this, the final <code>pygame.display.update()</code> is still using global state, which feels a bit strange given we have to specify which surface we are drawing to.</p> +<h2 id="benchmarking">Benchmarking</h2> +<p>The benchmarks were executed under the following conditions:</p> +<ul> +<li>Vertex count: 2,500</li> +<li>Edge count: 25,000</li> +<li>Screen dimensions: 5120x1440</li> +<li>CPU: 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz (4 cores, 8 threads)</li> +<li>iGPU: Intel Corporation TigerLake-LP GT2 [Iris Xe Graphics]</li> +<li>OS: Arch Linux</li> +</ul> +<p>Additionally, the metrics are all <strong>averages</strong> across 10 full runs.</p> +<table> +<thead> +<tr> +<th>Library</th> +<th>First frame time (ms)</th> +<th>Incremental frame time (ms)</th> +</tr> +</thead> +<tbody> +<tr> +<td>Raylib</td> +<td>29.87 ± 0.74</td> +<td>2.88 ± 1.11</td> +</tr> +<tr> +<td>PyGame</td> +<td>323.39 ± 44.60</td> +<td>5.59 ± 0.65</td> +</tr> +</tbody> +</table> +<p>In this benchmark Raylib’s average incremental frame render time was ~2x faster than PyGame’s, and its first frame render time was ~11x faster.</p> +<h3 id="why-is-pygame-so-slow">Why Is PyGame So Slow?</h3> +<p>Let’s instrument our code to dig deeper:</p> +<div class="sourceCode" id="cb5"><pre class="sourceCode python"><code class="sourceCode python"><span id="cb5-1"><a href="#cb5-1" aria-hidden="true" tabindex="-1"></a><span class="cf">if</span> first:</span> +<span id="cb5-2"><a href="#cb5-2" aria-hidden="true" tabindex="-1"></a> start <span class="op">=</span> time.monotonic_ns()</span> +<span id="cb5-3"><a href="#cb5-3" aria-hidden="true" tabindex="-1"></a> display.fill(BLACK)</span> +<span id="cb5-4"><a href="#cb5-4" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb5-5"><a href="#cb5-5" aria-hidden="true" tabindex="-1"></a> edge_times <span class="op">=</span> [] <span class="co"># new</span></span> +<span id="cb5-6"><a href="#cb5-6" aria-hidden="true" tabindex="-1"></a> vertex_times <span class="op">=</span> [] <span class="co"># new</span></span> +<span id="cb5-7"><a href="#cb5-7" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb5-8"><a href="#cb5-8" aria-hidden="true" tabindex="-1"></a> <span class="cf">for</span> edge <span class="kw">in</span> edge_list:</span> +<span id="cb5-9"><a href="#cb5-9" aria-hidden="true" tabindex="-1"></a> se <span class="op">=</span> time.monotonic_ns() <span class="co"># new</span></span> +<span id="cb5-10"><a href="#cb5-10" aria-hidden="true" tabindex="-1"></a> edge.draw_edge(display, LIGHT_GREY)</span> +<span id="cb5-11"><a href="#cb5-11" aria-hidden="true" tabindex="-1"></a> ee <span class="op">=</span> time.monotonic_ns() <span class="co"># new</span></span> +<span id="cb5-12"><a href="#cb5-12" aria-hidden="true" tabindex="-1"></a> edge_times.append(ee <span class="op">-</span> se) <span class="co"># new</span></span> +<span id="cb5-13"><a href="#cb5-13" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb5-14"><a href="#cb5-14" aria-hidden="true" tabindex="-1"></a> <span class="cf">for</span> vertex <span class="kw">in</span> graph:</span> +<span id="cb5-15"><a href="#cb5-15" aria-hidden="true" tabindex="-1"></a> sv <span class="op">=</span> time.monotonic_ns() <span class="co"># new</span></span> +<span id="cb5-16"><a href="#cb5-16" aria-hidden="true" tabindex="-1"></a> vertex.draw_vertex(display, LIGHT_GREY)</span> +<span id="cb5-17"><a href="#cb5-17" aria-hidden="true" tabindex="-1"></a> ev <span class="op">=</span> time.monotonic_ns() <span class="co"># new</span></span> +<span id="cb5-18"><a href="#cb5-18" aria-hidden="true" tabindex="-1"></a> vertex_times.append(ev <span class="op">-</span> sv) <span class="co"># new</span></span> +<span id="cb5-19"><a href="#cb5-19" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb5-20"><a href="#cb5-20" aria-hidden="true" tabindex="-1"></a> pygame.display.update()</span> +<span id="cb5-21"><a href="#cb5-21" aria-hidden="true" tabindex="-1"></a> end <span class="op">=</span> time.monotonic_ns()</span> +<span id="cb5-22"><a href="#cb5-22" aria-hidden="true" tabindex="-1"></a> first_time.append(end <span class="op">-</span> start)</span> +<span id="cb5-23"><a href="#cb5-23" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb5-24"><a href="#cb5-24" aria-hidden="true" tabindex="-1"></a> first <span class="op">=</span> <span class="va">False</span></span> +<span id="cb5-25"><a href="#cb5-25" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb5-26"><a href="#cb5-26" aria-hidden="true" tabindex="-1"></a> <span class="bu">print</span>(<span class="st">&quot;Edge time avg: &quot;</span> <span class="op">+</span> <span class="bu">str</span>(<span class="bu">sum</span>(edge_times) <span class="op">/</span> <span class="bu">len</span>(edge_times))) <span class="co"># new </span></span> +<span id="cb5-27"><a href="#cb5-27" aria-hidden="true" tabindex="-1"></a> <span class="bu">print</span>(<span class="st">&quot;Vertex time avg: &quot;</span> <span class="op">+</span> <span class="bu">str</span>(<span class="bu">sum</span>(vertex_times) <span class="op">/</span> <span class="bu">len</span>(vertex_times))) <span class="co"># new</span></span> +<span id="cb5-28"><a href="#cb5-28" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb5-29"><a href="#cb5-29" aria-hidden="true" tabindex="-1"></a> <span class="cf">continue</span></span></code></pre></div> +<p>(Notice the addition of timing for individual edge and vertex draw times for the first frame)</p> +<p>Let’s also update our Raylib code to do the same:</p> +<div class="sourceCode" id="cb6"><pre class="sourceCode python"><code class="sourceCode python"><span id="cb6-1"><a href="#cb6-1" aria-hidden="true" tabindex="-1"></a><span class="cf">if</span> first:</span> +<span id="cb6-2"><a href="#cb6-2" aria-hidden="true" tabindex="-1"></a> start <span class="op">=</span> time.monotonic_ns()</span> +<span id="cb6-3"><a href="#cb6-3" aria-hidden="true" tabindex="-1"></a> pr.begin_texture_mode(texture)</span> +<span id="cb6-4"><a href="#cb6-4" aria-hidden="true" tabindex="-1"></a> pr.clear_background(pr.BLACK)</span> +<span id="cb6-5"><a href="#cb6-5" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb6-6"><a href="#cb6-6" aria-hidden="true" tabindex="-1"></a> edge_times <span class="op">=</span> [] <span class="co"># new</span></span> +<span id="cb6-7"><a href="#cb6-7" aria-hidden="true" tabindex="-1"></a> vertex_times <span class="op">=</span> [] <span class="co"># new</span></span> +<span id="cb6-8"><a href="#cb6-8" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb6-9"><a href="#cb6-9" aria-hidden="true" tabindex="-1"></a> <span class="cf">for</span> edge <span class="kw">in</span> edge_list:</span> +<span id="cb6-10"><a href="#cb6-10" aria-hidden="true" tabindex="-1"></a> es <span class="op">=</span> time.monotonic_ns() <span class="co"># new</span></span> +<span id="cb6-11"><a href="#cb6-11" aria-hidden="true" tabindex="-1"></a> edge.draw_edge(pr.DARKGRAY)</span> +<span id="cb6-12"><a href="#cb6-12" aria-hidden="true" tabindex="-1"></a> ee <span class="op">=</span> time.monotonic_ns() <span class="co"># new</span></span> +<span id="cb6-13"><a href="#cb6-13" aria-hidden="true" tabindex="-1"></a> edge_times.append(ee <span class="op">-</span> es) <span class="co"># new</span></span> +<span id="cb6-14"><a href="#cb6-14" aria-hidden="true" tabindex="-1"></a> <span class="cf">for</span> vertex <span class="kw">in</span> graph:</span> +<span id="cb6-15"><a href="#cb6-15" aria-hidden="true" tabindex="-1"></a> vs <span class="op">=</span> time.monotonic_ns() <span class="co"># new</span></span> +<span id="cb6-16"><a href="#cb6-16" aria-hidden="true" tabindex="-1"></a> vertex.draw_vertex(pr.DARKGRAY)</span> +<span id="cb6-17"><a href="#cb6-17" aria-hidden="true" tabindex="-1"></a> ve <span class="op">=</span> time.monotonic_ns() <span class="co"># new</span></span> +<span id="cb6-18"><a href="#cb6-18" aria-hidden="true" tabindex="-1"></a> vertex_times.append(ve <span class="op">-</span> vs) <span class="co"># new</span></span> +<span id="cb6-19"><a href="#cb6-19" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb6-20"><a href="#cb6-20" aria-hidden="true" tabindex="-1"></a> pr.end_texture_mode()</span> +<span id="cb6-21"><a href="#cb6-21" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb6-22"><a href="#cb6-22" aria-hidden="true" tabindex="-1"></a> source_rec <span class="op">=</span> pr.Rectangle(<span class="dv">0</span>, <span class="dv">0</span>, screen_width, screen_height)</span> +<span id="cb6-23"><a href="#cb6-23" aria-hidden="true" tabindex="-1"></a> dest_rec <span class="op">=</span> pr.Rectangle(<span class="dv">0</span>, <span class="dv">0</span>, screen_width, screen_height)</span> +<span id="cb6-24"><a href="#cb6-24" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb6-25"><a href="#cb6-25" aria-hidden="true" tabindex="-1"></a> pr.begin_drawing()</span> +<span id="cb6-26"><a href="#cb6-26" aria-hidden="true" tabindex="-1"></a> pr.draw_texture_pro(texture.texture, source_rec, dest_rec, pr.Vector2(<span class="dv">0</span>, <span class="dv">0</span>), <span class="dv">0</span>, pr.WHITE)</span> +<span id="cb6-27"><a href="#cb6-27" aria-hidden="true" tabindex="-1"></a> pr.end_drawing()</span> +<span id="cb6-28"><a href="#cb6-28" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb6-29"><a href="#cb6-29" aria-hidden="true" tabindex="-1"></a> end <span class="op">=</span> time.monotonic_ns()</span> +<span id="cb6-30"><a href="#cb6-30" aria-hidden="true" tabindex="-1"></a> first_time.append(end <span class="op">-</span> start)</span> +<span id="cb6-31"><a href="#cb6-31" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb6-32"><a href="#cb6-32" aria-hidden="true" tabindex="-1"></a> first <span class="op">=</span> <span class="va">False</span></span> +<span id="cb6-33"><a href="#cb6-33" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb6-34"><a href="#cb6-34" aria-hidden="true" tabindex="-1"></a> <span class="bu">print</span>(<span class="st">&quot;Edge time avg: &quot;</span> <span class="op">+</span> <span class="bu">str</span>(<span class="bu">sum</span>(edge_times) <span class="op">/</span> <span class="bu">len</span>(edge_times))) <span class="co"># new</span></span> +<span id="cb6-35"><a href="#cb6-35" aria-hidden="true" tabindex="-1"></a> <span class="bu">print</span>(<span class="st">&quot;Vertex time avg: &quot;</span> <span class="op">+</span> <span class="bu">str</span>(<span class="bu">sum</span>(vertex_times) <span class="op">/</span> <span class="bu">len</span>(vertex_times))) <span class="co"># new</span></span> +<span id="cb6-36"><a href="#cb6-36" aria-hidden="true" tabindex="-1"></a></span> +<span id="cb6-37"><a href="#cb6-37" aria-hidden="true" tabindex="-1"></a> <span class="cf">continue</span></span></code></pre></div> +<p>Running this updated code once we find:</p> +<table> +<thead> +<tr> +<th>Library</th> +<th>Avg. Edge Draw Time (ns)</th> +<th>Avg. Vertex Draw Time (ns)</th> +</tr> +</thead> +<tbody> +<tr> +<td>PyGame</td> +<td>9504.15048</td> +<td>686.6508</td> +</tr> +<tr> +<td>Raylib</td> +<td>944.15884</td> +<td>3016.1852</td> +</tr> +</tbody> +</table> +<p>PyGame is faster at drawing vertices (circles), but slower at drawing edges (lines). Since we are drawing many more edges than we are vertices, this contributes to making PyGame slower.</p> +<p>PyGame is slower at drawing lines because it uses SDL which computes lines pixel by pixel on the CPU*, while Raylib appends the line ends to a queue for batch processing, to be asynchronously processed by the GPU.</p> +<p>In the case of vertices, Raylib calls <code>DrawCircleSector()</code>, and this in turn appends geometries to the GPU drawing queue, but each circle is made of many discrete geometries which are each appended to the queue, costing cycles. Contrasting this with the PyGame approach where PyGame only has to draw a few pixels onto the surface.</p> +<p>* There are ways to change the rendering pipeline for PyGame to make better use of GPUs, but these approaches are either complex or experimental.</p> +<h4 id="is-that-why-pygame-is-slower">Is that why PyGame is slower?</h4> +<p>That’s not the fully story. Let’s consider what the numbers above mean. The first frame renders 2,500 vertices, 25,000 edges. Each subsequent frame renders 1 vertex and 1 edge. If we multiply these numbers with the values we calculated for the amount of time each draw takes, we get the following expected frame times:</p> +<table> +<colgroup> +<col style="width: 33%" /> +<col style="width: 33%" /> +<col style="width: 33%" /> +</colgroup> +<thead> +<tr> +<th>Library</th> +<th>Expected First Frame Draw Time (ms)</th> +<th>Expected Subsequent Frame Draw Time (ms)</th> +</tr> +</thead> +<tbody> +<tr> +<td>PyGame</td> +<td>239.3204</td> +<td>0.0101908</td> +</tr> +<tr> +<td>Raylib</td> +<td>31.14443</td> +<td>0.003960344</td> +</tr> +</tbody> +</table> +<p>Based on this, we see the first frame times are on par with what we actually saw in our benchmarking, but the subsequent frame draw times are orders of magnitude faster than what we benchmarked, and since most frames are subsequent frames, they are severely impacting performance. Let’s see if we can figure out why this disparity exists.</p> +<h5 id="pygame-flamegraph">PyGame Flamegraph</h5> +<p><img src="images/pygame-flamegraph.svg" /></p> +<h5 id="raylib-flamegraph">Raylib Flamegraph</h5> +<p><img src="images/rlib-flamegraph.svg" /></p> +<p>We see most of our time is being spent in <code>EndDrawing()</code> for Raylib and <code>pygame.display.update()</code> for Pygame. After instrumenting these calls we find the following times per invocation:</p> +<table> +<thead> +<tr> +<th>Library</th> +<th>Function</th> +<th>Average Call Time (ms)</th> +</tr> +</thead> +<tbody> +<tr> +<td>PyGame</td> +<td><code>EndDrawing()</code></td> +<td>5.677199</td> +</tr> +<tr> +<td>Raylib</td> +<td><code>pygame.display.update()</code></td> +<td>2.680623</td> +</tr> +</tbody> +</table> +<p>Based on our original frame time benchmarks, these calls make up almost all of the time spent rendering subsequent frames.</p> +<h4 id="what-are-these-functions-doing">What Are These Functions Doing?</h4> +<p>In the case of Raylib, EndDrawing does a few things:</p> +<ol type="1"> +<li>Calls <code>rlDrawRenderBatchActive()</code> +<ul> +<li>This clears the batched geometries queue, issuing the OpenGL calls</li> +</ul></li> +<li>Calls <code>SwapScreenBuffer()</code> +<ul> +<li>This swaps the buffer the display scans out. In effect, this ensures the frame we just drew becomes visible.</li> +<li>This is done by with <code>glfwSwapBuffers()</code>, but this is beyond scope as it requires an understanding of OpenGL and double buffering.</li> +<li>In the normal case (which is how our code uses it), this function returns after the instructions have been issued, not once the frame has been rendered.</li> +</ul></li> +<li>Optionally waits to hit the target framerate in cases where rendering is happening faster than the target</li> +</ol> +<p>Most of the time spent here is on the second step. This is because issuing the instructions to swap will flush the driver’s command stream, and once a few frames are in flight, this will block until the GPU retires one.</p> +<p>Let’s step through the PyGame <code>update()</code> function too:</p> +<ol type="1"> +<li>Calls <code>pg_update()</code> in <code>src_c/display.c</code> +<ul> +<li>This performs some basic checks to make sure a display is set</li> +</ul></li> +<li><code>pg_update()</code> calls <code>SDL_UpdateWindowSurfaceRects</code> +<ul> +<li>This copies the buffer into a buffer owned by the windowing system (X11 in my case)</li> +</ul></li> +</ol> +<p>The main reason this is slower is PyGame copies the whole frame on the CPU for each frame while Raylib’s frame is already in VRAM and the swap doesn’t <a href="https://en.wikipedia.org/wiki/Bit_blit">blit</a>.</p> +<h2 id="takeaways">Takeaways</h2> +<p>Out of the box Raylib has better performance because it performs hardware accelerated rendering. In terms of ergonomics, they both have their own quirks. Raylib feels like a C library with Python bindings (because it is!), while PyGame feels inconsistent, mixing both explicit surface drawing, and global state for frame updates.</p> +<p>Personally, I’m not keen on using PyGame again because I enjoy writing performant software, and the reality of Python is it can’t be performant. This doesn’t mean I won’t ever write Python code again, it’s useful for first passes at a problem, but if I want to productionize that software I’ll have to rewrite it in a sensible programming language. The nice thing about doing a first pass on a project in Raylib is you can then rewrite it in C using Raylib directly, but the same isn’t true for PyGame.</p> +</body> +</html> diff --git a/posts/wip/pygame-vs-raylib.md b/posts/wip/pygame-vs-raylib.md @@ -1,272 +0,0 @@ -# Pygame vs Raylib - -I implemented [Prim's algorithm](https://cp-algorithms.com/graph/mst_prim.html) for the creation of a MST of a graph in Python. It's an algorithm worth understanding, but as it relates to the task of rendering, the following is true about the visualization I want: - -1. The first rendered frame must draw every edge and vertex of the graph. -2. For each subsequent timestep we have to re-draw one edge, the edge traversed at the timestep, and one vertex, the vertex we are visiting. - -Given this, the first frame being rendered will take substantially longer than subsequent frames for most graphs because rendering time is often proportional to the number of components we are rendering. With any sensible rendering program, there's a way to do incremental changes, making use of prior renders. This is true for both Raylib and PyGame. - -## Raylib - -### Implementation - -Raylib has 2D rendered textures which can be persisted across frames, to be rendered as part of the frame. Here's a little Python code that does this: - -```python - -# ... (imports and such) - -pr.init_window(screen_width,screen_height, "prim") - -# ... (other initialization) - -texture = pr.load_render_texture(screen_width,screen_height) - -while !done: - if first: - start = time.monotonic_ns() - pr.begin_texture_mode(texture) - pr.clear_background(pr.BLACK) - - for edge in edge_list: - edge.draw_edge(pr.DARKGRAY) - for vertex in graph: - vertex.draw_vertex() - first = False - pr.end_texture_mode() - source_rec = pr.Rectangle(0, 0, 5120, 1440) - dest_rec = pr.Rectangle(0, 0, 5120,1440) - pr.begin_drawing() - pr.draw_texture_pro(texture.texture, source_rec, dest_rec, pr.Vector2(0, 0), 0, pr.WHITE) - pr.end_drawing() - end = time.monotonic_ns() - first_time.append(end - start) - continue - - # ... (perform one step of Prim's algorithm) - - if len(to_draw_edge) != 0 or len(to_draw_vert) != 0: - start = time.monotonic_ns() - pr.begin_texture_mode(texture) - for edge in to_draw_edge: - edge.draw_edge(pr.WHITE) - for vert in to_draw_vert: - vert.draw_vertex() - pr.end_texture_mode() - source_rec = pr.Rectangle(0, 0, 5120, 1440) - dest_rec = pr.Rectangle(0, 0, 5120,1440) - - pr.begin_drawing() - pr.draw_texture_pro(texture.texture, source_rec, dest_rec, pr.Vector2(0, 0), 0, pr.WHITE) - pr.end_drawing() - end = time.monotonic_ns() - fts.append(end - start) - to_draw_vert = [] - to_draw_edge = [] - -``` - -(TODO: This isn't correct anymore with the code above) - -Outside of our main iteration loop for Prim's algorithm, we initialize our texture to be the size of our screen, matching the window size we specified, because fullscreen animations are cooler, and we want the texture to fill the entire window. We then call the `draw_init_graph()` function with our texture as input to draw our graph to the texture, and then output the first rendered frame. - -Within our main iteration loop, we call the `begin_texture_mode()` function, which updates the Raylib global state, and makes any Raylib calls to render things to be rendered on that texture. Examples of such calls are shown below: - -```python -pr.draw_line(int(self.v1.x), int(self.v1.y), int(self.v2.x), int(self.v2.y), c) -pr.draw_circle(int(self.x),int(self.y), RADIUS, pr.WHITE) -``` - -Notice how we don't have to specify we are rendering to the texture, Raylib stores the global state for what canvas is being rendered to. - -Continuing on, we then call `end_texture_mode()` to finalize the render of the texture. This invocation is generally quite slow because it realizes the queue of writes we've sent to Raylib from our `draw_line` and `draw_circle` invocations. In this case though, since each iteration only draws one line and one circle, the overhead cost isn't great, it is merely interesting that this is how Raylib supports batch rendering. - -We then define two rectangles which will be used to map the texture onto the frame. We also call `begin_drawing()` which tells Raylib we are going to start rendering our frame now. Since Raylib makes extensive use of global state, it knows we mean we are rendering to the window we created from our `init_window()` invocation at the beginning. - -The rest is fairly obvious. - -## PyGame - -### Implementation - -PyGame frames are persisted from frame-to-frame, so we don't have to mess with rendered textures like we did with Raylib! Here's a little code that does the PyGame rendering: - -```python - -# ... (imports and such) - -pygame.init() -display = pygame.display.set_mode((screen_width,screen_height)) - -# ... (other initialization) - -while !done: - if first: - start = time.monotonic_ns() - display.fill(black) - for edge in edge_list: - edge.draw_edge(display, light_grey) - - for vertex in graph: - vertex.draw_vertex(display) - pygame.display.update() - end = time.monotonic_ns() - first_time.append(end - start) - first = False - continue - - # ... (perform one step of Prim's algorithm) - - start = time.monotonic_ns() - for edge in to_draw_edge: - edge.draw_edge(display, white) - for vert in to_draw_vert: - vert.draw_vertex(display) - pygame.display.update() - end = time.monotonic_ns() - - to_draw_vert = [] - to_draw_edge = [] -``` - -That's a bit nicer than the Raylib variant because we don't have to mess with a standalone texture, and I like the way writing to a display works in PyGame: - -```python -pygame.draw.circle(display, white, (self.x,self.y), 5) -pygame.draw.line(display, white, (self.v1.x,self.v1.y), (self.v2.x,self.v2.y), 1) -``` - -This feels much more explicit to write directly to the display instead of writing to the Raylib global state. Despite this, the final: - -```python -pygame.display.update() -``` - -Is still over-using global state in my opinion. All that being said, PyGame does feel more pythonic. - -## Benchmarking - -These benchmarks are performed with the following parameters: - -- Vertex count: 2,500 -- Edge count: 25,000 -- Screen dimensions: 5120x1440 - -Averaging across 10 full graph traversals. For each of the times we are tracking, these are as close to just render time as possible, removing all of the graph traversal logic time from the measured times. - -### Raylib - -Average frame time (ns): 2882704.4661864745 -Std. deviation frame time (ns): 1114606.9047266191 -Average first frame time (ns): 29873724.3 -Std. deviation first frame time (ns): 737806.3908848008 - -### PyGame - -Average frame time (ns): 5593530.846578632 -Std. deviation frame time (ns): 654036.6681470409 -Average first frame time (ns): 323388385.3 -Std. deviation first frame time (ns): 44603039.88315142 - -### Deltas - -- Raylib's average frame render time was 1.94x faster than PyGame's. -- Raylib's average first frame render time was 10.83x faster than PyGame's. - -### Why So Slow? - -Well, let's add some more time track to our PyGame code to find out why: - -```python -if first: - start = time.monotonic_ns() - display.fill(black) - - edge_times = [] - vertex_times = [] - - for edge in edge_list: - se = time.monotonic_ns() - edge.draw_edge(display, light_grey) - ee = time.monotonic_ns() - edge_times.append(ee - se) - - for vertex in graph: - sv = time.monotonic_ns() - vertex.draw_vertex(display) - ev = time.monotonic_ns() - vertex_times.append(ev - sv) - - pygame.display.update() - end = time.monotonic_ns() - first_time.append(end - start) - first = False - print("Edge time avg: " + str(sum(edge_times) / len(edge_times))) - print("Vertex time avg: " + str(sum(vertex_times) / len(vertex_times))) - continue -``` - -Here are some sample outputs of this: - -``` -Edge time avg: 9504.15048 -Vertex time avg: 686.6508 -Edge time avg: 9479.576 -Vertex time avg: 684.0856 -Edge time avg: 10398.7096 -Vertex time avg: 689.1952 -``` - -That's interesting. Let's compare this to our Raylib code: - -```python -if first: - start = time.monotonic_ns() - pr.begin_texture_mode(texture) - pr.clear_background(pr.BLACK) - - edge_times = [] - vertex_times = [] - - for edge in edge_list: - es = time.monotonic_ns() - edge.draw_edge(pr.DARKGRAY) - ee = time.monotonic_ns() - edge_times.append(ee - es) - for vertex in graph: - vs = time.monotonic_ns() - vertex.draw_vertex() - ve = time.monotonic_ns() - vertex_times.append(ve - vs) - first = False - pr.end_texture_mode() - source_rec = pr.Rectangle(0, 0, 5120, 1440) - dest_rec = pr.Rectangle(0, 0, 5120,1440) - pr.begin_drawing() - pr.draw_texture_pro(texture.texture, source_rec, dest_rec, pr.Vector2(0, 0), 0, pr.WHITE) - pr.end_drawing() - end = time.monotonic_ns() - first_time.append(end - start) - - print("Edge time avg: " + str(sum(edge_times) / len(edge_times))) - print("Vertex time avg: " + str(sum(vertex_times) / len(vertex_times))) - continue -``` - -``` -Edge time avg: 944.15884 -Vertex time avg: 3016.1852 -Edge time avg: 961.17092 -Vertex time avg: 3076.4524 -``` - -Huh. We see PyGame is faster at rendering vertices (circles), but slower drawing edges (lines). If we consider the PyGame source code, this actually makes some amount of sense. PyGame uses SDL where we have to walk the lines pixel by pixel on CPU, costing a lot of cycles, while Raylib writes the edge ends to a geometry batch to be asynchronously rendered on GPU lessening the amount of time spent in this loop. - -If we consider the vertices, the Python Raylib bindings call out to `DrawCircleSector()`, and this in turn appends geometries to the GPU geometries batch, but for every circle there are a bunch of discrete geometries which have to be appended to the batch, costing cycles. Contrasting this with the PyGame approach where PyGame simply has a draw some pixels onto the screen. - -There are ways to make PyGame utilize the GPU more, but these approaches are much more complex, and not something an average person who just wants to render some graphs would do. - -## Takeaways - -For most use cases, you'll likely have better rendering performance if you use Raylib. Raylib is slightly more complex to work with, requiring explicit texture manipulation to achieve comparable performance on incremental renders, and making use of more global state, how the underlying C library is designed. Despite this, PyGame also makes use of some global state that can be a bit annoying, but slightly less so. Additionally, if you want to utilize GPU rendering more fully, Raylib will be better. diff --git a/python/pygame-vs-raylib/profiling/prim-rlib.py b/python/pygame-vs-raylib/profiling/prim-rlib.py @@ -0,0 +1,155 @@ +import pyray as pr +import heapq +import random +import math +import time + +VERTICES = 2500 +EDGES = 25000 +RADIUS = 5 + +pr.init_window(5120,1440, "prim") + +EDGEGRAY =( 20, 20, 20, 255 ) + +timings = [] + +class Vertex(): + def __init__(self, x, y): + self.x = x + self.y = y + self.visited = False + def draw_vertex(self): + if self.visited: + pr.draw_circle(int(self.x),int(self.y), RADIUS, pr.WHITE) + else: + pr.draw_circle(int(self.x),int(self.y), RADIUS, pr.DARKGRAY) +class Edge(): + def __init__(self, v1, v2): + self.v1 = v1 + self.v2 = v2 + self.dist = math.sqrt(((v1.x - v2.x) ** 2) + ((v1.y - v2.y) ** 2)) + def draw_edge(self, c): + pr.draw_line(int(self.v1.x), int(self.v1.y), int(self.v2.x), int(self.v2.y), c) + + def __lt__(self,otr): + return self.dist < otr.dist + + +graph = {} + +for i in range(0,VERTICES): + x = random.random() * 5120 + y = random.random() * 1440 + graph[Vertex(x,y)] = [] + + +edge_list = [] +keys = list(graph.keys()) + +for i in range(0,EDGES): + k1 = None + k2 = None + while k1 == k2: + k1 = random.choice(keys) + k2 = random.choice(keys) + + edge = Edge(k1,k2) + graph[k1].append(edge) + graph[k2].append(edge) + edge_list.append(edge) + + +edge_heap = [] +visited_vertices = set() + + +start = random.choice(keys) +start.visited = True +visited_vertices.add(start) +for edge in graph[start]: + heapq.heappush(edge_heap, edge) + + +first = True + +to_draw_vert = [] +to_draw_edge = [] + +texture = pr.load_render_texture(5120,1440) + +while True: + + pr.begin_texture_mode(texture) + + if first: + pr.clear_background(pr.BLACK) + + for edge in edge_list: + edge.draw_edge(EDGEGRAY) + first = False + + for vertex in graph: + vertex.draw_vertex() + + pr.end_texture_mode() + + source_rec = pr.Rectangle(0, 0, 5120,1440) + dest_rec = pr.Rectangle(0, 0, 5120,1440) + + pr.begin_drawing() + pr.draw_texture_pro(texture.texture, source_rec, dest_rec, pr.Vector2(0, 0), 0, pr.WHITE) + b = time.monotonic_ns() + pr.end_drawing() + a = time.monotonic_ns() + print("First frame time: " + str(a - b)) + + continue + + for edge in to_draw_edge: + edge.draw_edge(pr.WHITE) + for vert in to_draw_vert: + vert.draw_vertex() + + to_draw_vert = [] + to_draw_edge = [] + + + item = None + while edge_heap: + candidate = heapq.heappop(edge_heap) + if (candidate.v1 in visited_vertices) != (candidate.v2 in visited_vertices): + item = candidate + break + + if item is None: + break + + new_vertex = item.v2 if item.v1 in visited_vertices else item.v1 + visited_vertices.add(new_vertex) + new_vertex.visited = True + + to_draw_vert.append(new_vertex) + to_draw_edge.append(item) + + for edge in graph[new_vertex]: + if not edge.v1 in visited_vertices or not edge.v2 in visited_vertices: + heapq.heappush(edge_heap, edge) + + pr.end_texture_mode() + + source_rec = pr.Rectangle(0, 0, 5120,1440) + dest_rec = pr.Rectangle(0, 0, 5120,1440) + + pr.begin_drawing() + pr.draw_texture_pro(texture.texture, source_rec, dest_rec, pr.Vector2(0, 0), 0, pr.WHITE) + + b1 = time.monotonic_ns() + pr.end_drawing() + a1 = time.monotonic_ns() + timings.append(a1 - b1) + +pr.unload_render_texture(texture) +pr.close_window() + +print("Average update time:" + str(sum(timings) / len(timings))) diff --git a/python/pygame-vs-raylib/profiling/prim.py b/python/pygame-vs-raylib/profiling/prim.py @@ -0,0 +1,146 @@ +import pygame +import heapq +import random +import math +import time + +pygame.init() + +display = pygame.display.set_mode((5120,1440)) + +VERTICES = 2500 +EDGES = 25000 + +white = (255, 255, 255) +red = (255, 0, 0) +black = (0, 0, 0) +grey = (100,100,100) +light_grey = (50,50,50) + + +class Vertex(): + def __init__(self, x, y): + self.x = x + self.y = y + self.visited = False + def draw_vertex(self,display): + if self.visited: + pygame.draw.circle(display, white, (self.x,self.y), 5) + else: + pygame.draw.circle(display, grey, (self.x,self.y), 5) +class Edge(): + def __init__(self, v1, v2): + self.v1 = v1 + self.v2 = v2 + self.dist = math.sqrt(((v1.x - v2.x) ** 2) + ((v1.y - v2.y) ** 2)) + def draw_edge(self,display, c): + pygame.draw.line(display, c, (self.v1.x,self.v1.y), (self.v2.x,self.v2.y), 1) + + def __lt__(self,otr): + return self.dist < otr.dist + + +graph = {} +timings = [] + +for i in range(0,VERTICES): + x = random.random() * 5120 + y = random.random() * 1440 + graph[Vertex(x,y)] = [] + + +edge_list = [] +keys = list(graph.keys()) + +for i in range(0,EDGES): + k1 = None + k2 = None + while k1 == k2: + k1 = random.choice(keys) + k2 = random.choice(keys) + + edge = Edge(k1,k2) + graph[k1].append(edge) + graph[k2].append(edge) + edge_list.append(edge) + + +edge_heap = [] +visited_vertices = set() + + +start = random.choice(keys) +start.visited = True +visited_vertices.add(start) +for edge in graph[start]: + heapq.heappush(edge_heap, edge) + + +first = True + +to_draw_vert = [] +to_draw_edge = [] + +#itr = 0 +while True: + for event in pygame.event.get(): + if event.type == pygame.QUIT: + pygame.quit() + quit() + + if first: + display.fill(black) + + for edge in edge_list: + edge.draw_edge(display, light_grey) + first = False + + for vertex in graph: + vertex.draw_vertex(display) + s1 = time.monotonic_ns() + pygame.display.update() + s2 = time.monotonic_ns() + print("First frame time: " + str(s2 - s1)) + + continue + + + for edge in to_draw_edge: + edge.draw_edge(display, white) + for vert in to_draw_vert: + vert.draw_vertex(display) + + to_draw_vert = [] + to_draw_edge = [] + + + item = None + while edge_heap: + candidate = heapq.heappop(edge_heap) + if (candidate.v1 in visited_vertices) != (candidate.v2 in visited_vertices): + item = candidate + break + + if item is None: + break + + new_vertex = item.v2 if item.v1 in visited_vertices else item.v1 + visited_vertices.add(new_vertex) + new_vertex.visited = True + + to_draw_vert.append(new_vertex) + to_draw_edge.append(item) + + for edge in graph[new_vertex]: + if not edge.v1 in visited_vertices or not edge.v2 in visited_vertices: + heapq.heappush(edge_heap, edge) + #pygame.image.save(display,"out"+str(itr)+".jpg") + #itr += 1 + + start = time.monotonic_ns() + pygame.display.update() + end = time.monotonic_ns() + timings.append(end - start) + + +print("Average update time:" + str(sum(timings) / len(timings)))