All posts

How one RTX 5090 now checks three videos at once

OriginAI runs on one rented graphics card. We measured how much of that card a single scan actually uses, first on an RTX 3090 and then on an RTX 5090, and changed the worker so that three people can scan at the same time. This post covers the tests, the changes, and the results.

Bar chart of scans per minute: 2.8 on an RTX 3090 one scan at a time, 5.8 on an RTX 5090 with the old worker, 8.65 on the RTX 5090 with the new worker.
Scans per minute on a single GPU, mixed 1080p videos, all four detectors.

Every scan on OriginAI runs on a single GPU that we rent by the hour. Until this month, that GPU checked one video at a time, so if two people pressed Scan together, the second person had to wait for the first scan to finish. We wanted to know whether the card could handle more, and how much more.

We tested this in three rounds: on the RTX 3090 the site used at the time, on an RTX 5090 with the same software, and on the RTX 5090 again after rewriting parts of the worker.

How we measured

We rented the same kind of machine the site uses from Vast.ai and ran the worker exactly as it is deployed. Every test used the example clip from our homepage, re-encoded to 1080p in three versions:

  • 15 seconds long (451 frames)
  • 2 minutes at 30 frames per second (3,600 frames)
  • 2 minutes at 60 frames per second (7,200 frames), the heaviest video the site accepts

Each video was checked with all four detectors: Veni HQ, Veni LQ, Vidi, and Vici. We sent a mixed batch of scans at once (16 in the first two rounds, 24 in the third) and let the worker run a fixed number of them at the same time. A separate test sent only the heaviest videos together. For every run we recorded scans per minute, the wait per scan, how busy the GPU was, its peak memory, and the number of failed scans.

Round 1: RTX 3090 with 24 GB

A single scan did not keep the RTX 3090 busy. While one video was being checked, the GPU was working only 42 to 66 percent of the time. The rest of the time it waited for frames to be decoded, for the face to be tracked from frame to frame, and for small steps that depend on each other. That suggested there was room for a second scan.

Memory turned out to be the limit. The worker at the time kept a preview of every decoded frame on the GPU, so longer videos needed much more memory. On top of the 3.1 GB that the loaded models take up, one scan needed:

VideoVeni and ViciVidi
15 seconds8.3 GB2.8 GB
2 minutes at 30 fps10.4 GB4.9 GB
2 minutes at 60 fps13.2 GB7.7 GB

Checking one video at a time gave 2.8 scans per minute. With two at once and PyTorch's default memory settings, the card ran out of memory and only 4 of the 16 scans finished. After switching PyTorch to expandable memory segments, which reduce fragmentation, all 16 finished at 3.54 per minute, 26 percent more, with the GPU 83 percent busy and 23.5 of its 24 GB in use. Two of the heaviest videos together still ran out of memory, so the 3090 stayed at one scan at a time.

Round 2: RTX 5090 with 32 GB, same worker

The RTX 5090 was 1.3 to 1.5 times faster per scan. A 2-minute 30 fps video took about 21 seconds with Veni instead of 27, and Vidi's heaviest test took 85 seconds instead of 130. A single scan kept it busy only 30 to 41 percent of the time, even less than on the 3090, because the work done on the CPU now set the pace.

With the same worker, one scan at a time gave 3.9 scans per minute. Two at once gave 5.8, all 16 scans finished, and two of the heaviest videos together peaked at 29.4 GB. Three at once ran out of memory: 5 of the 16 scans failed, and all three heavy videos failed. The 5090 was fast enough for more scans, but it did not have the memory for them.

Scans per minute before the changes

16 mixed scans, 1080p, all four detectors

RTX 3090, 24 GB

One at a time2.8
Two at onceheavy videos failed3.54

RTX 5090, 32 GB

One at a time3.9
Two at once5.8
Three at once5 of 16 scans failed5.8
One at a timeTwo at once, no failuresSome scans ran out of memory

What we changed

Instead of renting a second GPU, we reduced the memory each scan needs and changed how scans share the card:

  • Each scan runs on its own CUDA stream, so the many small GPU steps of one scan, such as face detection and alignment, can run while other scans are busy on the CPU. The detector models themselves run on one shared stream, one scan at a time, because PyTorch keeps freed memory reserved per stream and three separate streams would each hold several gigabytes.
  • Frame previews, which are used for the evidence maps, are kept in system RAM. Only the roughly 40 frames that appear in a result are copied to the GPU.
  • For Vidi, the face crops are cut while the video is read the first time instead of decoding it twice, and the facial landmark model processes faces in full batches of 16.
  • Expandable memory segments stay on. If a scan still runs out of GPU memory, it is run again on its own, at the front of the line, instead of failing.
  • Videos are decoded on the CPU. During testing we found that the GPU decoder had been falling back to a conversion path whose pixels differed from the thesis pipeline by up to 2 out of 255. The CPU decoder produces exactly the same frames as the thesis code, and it also removed a crash the GPU decoder caused when several streams were busy.
  • A fixed cuBLAS workspace keeps the calculations reproducible when several streams run together.

Some ideas did not make it: a faster face-detection image pyramid, because its output was not identical on real video frames; running all scans on one shared stream, which was slower and crashed; and changing Python's thread-switching interval, which made no measurable difference.

The version running now is our third attempt. The first one lowered memory use and almost doubled throughput at two scans, but three at once was no faster than two. The second added a stream per scan but still decoded video on the GPU, and under load the decoder crashed and took the other scans down with it. The third moved decoding to the CPU.

Round 3: RTX 5090 with the new worker

We tested the new worker on an RTX 5090 with 12 CPU cores, the configuration the site rents, using 24 mixed scans.

Scans per minute after the changes

RTX 5090, 12 CPU cores, 24 mixed scans

Old workerone at a time3.75
One at a time4.41
Two at once7.4
Three at once8.65
Four at once7.95
Old workerNew workerNew worker, setting used on the site

Peak GPU memory

Same runs, in GB; a full bar is the RTX 5090's 32 GB

Old workerone at a time16.2
One at a time13.8
Two at once19.9
Three at once23.9
Four at once28.4
24 GB, the memory of an RTX 3090

Heaviest videos: 2 minutes at 60 fps

Scans per minute with several sent at once, RTX 5090

Old worker1.2
Two at once2.09
Three at once2.56
Four at once2.61

Vidi: time to check one 2-minute video

Seconds, one scan on its own, RTX 5090

30 frames per second

Old worker48 s
New worker29 s

60 frames per second

Old worker84 s
New worker54 s

The full results:

MeasureOld worker1 at a time2 at once3 at once4 at once
Scans per minute3.754.417.48.657.95
Average wait per scan (s)31.727.124.025.532.9
GPU busy (%)3539627064
Peak GPU memory (GB)16.213.819.923.928.4
Failed scans00000

Three scans at once gave the highest throughput: 8.65 scans per minute, 2.3 times the old worker, with the GPU busy 70 percent of the time and a peak of 23.9 of its 32 GB. Four at once was slower, at 7.95 per minute, and each scan waited longer, because decoding on 12 CPU cores became the bottleneck. No scan failed in any run of the new worker, including a test with 16 of the heaviest videos. Vidi also got faster on its own: a 2-minute video went from 48 to 29 seconds, because the video is now read once and the landmark model works in full batches.

The worker now chooses how many scans to run at once based on the hardware it finds: three on an RTX 5090 with at least 12 CPU cores, two on a 24 GB card, and one on a 16 GB card.

Do the results change?

Running scans together does not change the results. With the same video decoder, Veni HQ, Veni LQ, and Vici give bit-identical scores, timelines, and evidence images whether one or four scans run at once. Vidi varies in the fourth decimal place between runs, as it did before.

The switch to CPU decoding did move some scores slightly. On one test clip, Veni LQ went from 0.163 to 0.182. This is because the frames now match the thesis pipeline exactly, so the site's scores are the ones the thesis method produces.

What this means for you

  • Up to three people can scan at the same time. A fourth person waits in a short line on the scanner page, and their scan starts automatically when a spot opens up.
  • One GPU handles about 8 to 9 scans per minute, or around 500 per hour, at a cost of about 50 cents an hour.
  • Long videos finish sooner. A 2-minute video checked with Vidi takes about 29 seconds instead of 48.

All measurements were taken on October 9, 2026, on rented machines: an RTX 3090 with an AMD EPYC 7K62 (23 CPU cores available) and an RTX 5090 with an AMD EPYC 7R12 (23 cores in round 2, 12 cores in round 3). Scans per minute is the number of completed scans divided by the time until the last one finished. GPU busy is the average utilization reported by the NVIDIA driver during a run. Rounds 1 and 2 used 16 scans and round 3 used 24, so the numbers from different rounds are not exactly comparable. Results on other machines may differ by a few percent.

Written by

Eugene T. Custodio

Lead AI Researcher, SwinFusion++

Eugene leads the AI research for SwinFusion++: Face-Aligned Spatio-Temporal Swin Transformer for Deepfake Detection, the thesis behind OriginAI. His research focuses on computer vision and large language models.

Earlier research he led

  • Evaluating Gradient Boosting for Phishing Detection: A Focus on URL Features
  • YOLOv8n-Based Person Detection for Campus Attendance Support: A Site-Specific Study at the University of the East, Manila
  • TaG-DT YOLO11-M: Taxonomy-Guided Dual-Task Learning for Waste Detection and Classification
Meet the whole team

Not Sure About A Video?

Scan it now. It's free, there's no sign-up, and your video is deleted right after.