View Single Post
Old 28th November 2019, 13:58   #2  |  Link
ChaosKing
Registered User
 
Join Date: Dec 2005
Location: Germany
Posts: 1,795
The described steps seem to depend on each other. I don't see how multithreading would help here (much). Rendering a single frame should be still fast enough. Some unsafe bitmap rendering code could speed up things - https://stackoverflow.com/a/24702215/8444552
I remember I used something similar once to compare 2 images in .net and with unsafe code ist was 0.1sec vs 1sec or so. Maybe this is something you could try out first.

And step2 seems to be the bottleneck... as you write "slow for large videos" - (on ssd or hdd)?. Are you using ffm2/lsmash to open video files?
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth
VapourSynth Portable FATPACK || VapourSynth Database
ChaosKing is offline   Reply With Quote