feat(m0): measure a YouTube video's dropped frames next to Jarvis
User decision (2026-11-11): the 95 % GPU cap is off by default because gamemode_tune showed it did not lower nvidia-smi's utilisation and cost 6 to 10 % of the LLM's output. The worry behind it was a video stuttering next to Jarvis, so the new on-demand stage video_drops measures that: - A public Blender upload plays at 1080p60 in a throwaway Chrome/Edge profile (removed afterwards), driven over DevTools with a small standard-library WebSocket client, so no package is added to the already built venvs. - Each window counts the video's dropped frames (the player's own counter) and the gaps over 50/100 ms between shown frames (requestVideoFrameCallback); windows with an ad, a pause, the end or a new video are kept but not counted. - Rows: video alone, Jarvis idle (normal placement with the STT room and 1 GB for other programs), Jarvis busy (LLM answering, STT transcribing ten speakers back to back) without and with the cap in A B B A order, then the video alone again. The cap pauses the engine and the STT worker only, never the browser. - run_m0_video.bat runs just this stage. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -13,6 +13,8 @@ Options (--opt key=value):
|
||||
only=tune the normal placement with room left for the STT and 1 GB for other
|
||||
programs, the game placement with the STT doing fewer partial passes
|
||||
while the LLM answers, and both with Jarvis capped at 95 % of the GPU
|
||||
only=video a YouTube video's dropped frames with Jarvis off, idle and busy (the
|
||||
normal placement), busy also with the 95 % GPU cap (video.py)
|
||||
stt_python=PATH the Python of the stt venv (m0.py passes it)
|
||||
"""
|
||||
|
||||
@@ -661,7 +663,7 @@ def measure_external(r: StageResult, url: str, context: int, only: str = "") ->
|
||||
if only == "tools":
|
||||
tools_only(r, c)
|
||||
return
|
||||
if only in LEVEL_SETS:
|
||||
if only in LEVEL_SETS or only == "video":
|
||||
r.note("placements need Strata; not measured against an external server")
|
||||
return
|
||||
with GpuSampler() as g:
|
||||
@@ -680,7 +682,7 @@ def measure_strata(r: StageResult, work: Path, which: str, context: int, only: s
|
||||
return
|
||||
r["plan"] = s.plan(preset, context)
|
||||
r.save()
|
||||
if only in LEVEL_SETS:
|
||||
if only in LEVEL_SETS or only == "video":
|
||||
s.stop()
|
||||
if port_in_use(PORT):
|
||||
r.error("port", f"다른 프로그램이 {PORT} 포트를 쓰고 있습니다. 그 프로그램을 끄고 다시 실행해 주세요.")
|
||||
@@ -688,6 +690,10 @@ def measure_strata(r: StageResult, work: Path, which: str, context: int, only: s
|
||||
if only != "levels" and not stt_python:
|
||||
r.error("stt", "STT 환경을 찾지 못했습니다")
|
||||
return
|
||||
if only == "video":
|
||||
from m0lib import video
|
||||
video.measure(r, s, preset, context, stt_python)
|
||||
return
|
||||
if only == "live":
|
||||
if not ask_for_a_game():
|
||||
r["skipped"] = "no game started"
|
||||
@@ -772,7 +778,7 @@ def main() -> int:
|
||||
context = int(opts.get("context", "32768"))
|
||||
only = opts.get("only", "")
|
||||
name = {"tools": f"tools_{which}", "levels": "gamemode", "together": "gamemode_stt",
|
||||
"live": "gamemode_live", "tune": "gamemode_tune"}.get(only, f"llm_{which}")
|
||||
"live": "gamemode_live", "tune": "gamemode_tune", "video": "video_drops"}.get(only, f"llm_{which}")
|
||||
r = StageResult(name, out)
|
||||
try:
|
||||
if opts.get("url"):
|
||||
|
||||
Reference in New Issue
Block a user