PDA

View Full Version : multiprocessor optimisation,..


Selur
15th May 2003, 07:32
Would it be possible to optimise in some ways for SMP ?
(CPU usage while encoding with Xvid only lies at 55-65%, using newest avisynth as framserver)

Cu Selur

Acaila
15th May 2003, 08:35
That's not a problem of VDub/VDubMod, but of the filters and codec settings you're using. VDub balances ingoing and outgoing data between cpus, but when your ingoing or outgoing data requires more processing you'll see a shift to 50% cpu load. Without any filters and with 'light' codec settings you would get >90% cpu load, but the more (non-smp) filters/setting you use the less optimal it's going to run.

dillee1
15th May 2003, 16:42
wow, i have ask this question in divx forum ages ago and no body seems interested. now Mr. selur pull it up here :-)

I think due to the data dependance of those P/B frames, xvid codec inherently cannot split the job into multiple threads, as long as if we use vfw interface and deal with the problem frame by frame......

What I do to make use of all the CPU cycles is to manually split the encoding job into 2 parts, run each part in a separate instance of vdub. I got 80-100% speed boost, ~ 50fps on my dual pIII 1G rag.

Selur
15th May 2003, 17:43
@Acaila: Thx :)