Annotated: electrosim.rendering.overlay#

draw_overlay#

  • Renders multi-line text with a small shadow for readability.

  • Displays FPS, particle count, speed, timestep, energies.

  • When PROFILE_OVERLAY_ENABLED: shows physics/draw/field timings.

  • UI hints list keyboard/mouse controls and display toggles.