# First source load takes far longer than subsequent loads

**URL:** <https://community.shotgridsoftware.com/t/first-source-load-takes-far-longer-than-subsequent-loads/10623>\
**Category:** RV\
**Tags:** rv-elves\
**Created:** [November 6, 2020, 7:00pm UTC](https://community.shotgridsoftware.com/t/first-source-load-takes-far-longer-than-subsequent-loads/10623 "2020-11-06T19:00:21Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael.Kessler](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/michael.kessler/32/183_2.png) [@Michael.Kessler](https://community.shotgridsoftware.com/u/Michael.Kessler)\
**Post date:** [November 6, 2020, 7:00pm UTC](https://community.shotgridsoftware.com/t/first-source-load-takes-far-longer-than-subsequent-loads/10623/1 "2020-11-06T19:00:21Z")

</div>

Using RV 7.6.1 (also confirmed this happens with RV-2021) Windows 10 b19041.472 with RTX 2080 (Driver 27.21.14.5206), I am finding that the first image load is far longer than on other OSes. It is taking multiple seconds (in my profile, almost 12 seconds) from drag-drop to first pixel. It doesn’t seem to matter what image size is loaded; I’ve tried UHD and 1080p.

 ![profile_1](https://global.discourse-cdn.com/shotgunsoftware/original/2X/1/1e4d5d21860b364503a846458a6b86325da4137a.png)

You can see almost the entire time period is spent in internalRender

 ![internal_render](https://global.discourse-cdn.com/shotgunsoftware/original/2X/a/a27d6e0fa90d6760ea8cb8b5b4e33f747b195f47.png)

@bernie/@alexaz, is this potentially the image buffer creation? Is there anyway to debug this further or gather metrics for you, and is this reproducible on your side?

Thanks,  
-Kessler

---

<div class="post-metadata">

**Author:** ![Michael.Kessler](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/michael.kessler/32/183_2.png) [@Michael.Kessler](https://community.shotgridsoftware.com/u/Michael.Kessler)\
**Post date:** [November 9, 2020, 10:34pm UTC](https://community.shotgridsoftware.com/t/first-source-load-takes-far-longer-than-subsequent-loads/10623/2 "2020-11-09T22:34:06Z")

</div>

Also, importantly to this community, is anyone else seeing this? If you can try out the `-debug profile` to generate a profile and use rvprof to view the profile, that would give some metrics as to how long you are seeing without a stopwatch…

---

<div class="post-metadata">

**Author:** ![alexaz](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/alexaz/32/82_2.png) [@alexaz](https://community.shotgridsoftware.com/u/alexaz)\
**Post date:** [November 14, 2020, 12:21am UTC](https://community.shotgridsoftware.com/t/first-source-load-takes-far-longer-than-subsequent-loads/10623/4 "2020-11-14T00:21:37Z")

</div>

Hey Mike,

Is this for EXRs specifically or another format?

– Alexa

---

<div class="post-metadata">

**Author:** ![Michael.Kessler](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/michael.kessler/32/183_2.png) [@Michael.Kessler](https://community.shotgridsoftware.com/u/Michael.Kessler)\
**Post date:** [November 16, 2020, 5:57pm UTC](https://community.shotgridsoftware.com/t/first-source-load-takes-far-longer-than-subsequent-loads/10623/5 "2020-11-16T17:57:54Z")

</div>

Great question, it seems to be format independent, but my profiled test was a sequence of jpegs. I’ll validate with profiling on a variety of formats.

---

<div class="post-metadata">

**Author:** ![bernie](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/bernie/32/1717_2.png) [@bernie](https://community.shotgridsoftware.com/u/bernie)\
**Post date:** [November 18, 2020, 3:03pm UTC](https://community.shotgridsoftware.com/t/first-source-load-takes-far-longer-than-subsequent-loads/10623/6 "2020-11-18T15:03:46Z")

</div>

Hey Kessler,  
on my end I get 1.7 sec on the first render of a first drag and drop of a file sequence (approx 400 files) (less than 2 seconds). I tested both exr and jpg file sequences and the first render is constant.  
Running RV 2021 on Windows10 with NVidia Quadro P5000.  
12 seconds is a long time !  
I wonder what is the variable that makes RV tick : is it the RTX 2080 ?  
Have you tried -resetPrefs just in case there is some RV setting that is causing this ?  
Does it matter where the files are located ?  
Can you try dragging and dropping the files from a different directory with less files in them ?

Bernie

---

<div class="post-metadata">

**Author:** ![Michael.Kessler](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/michael.kessler/32/183_2.png) [@Michael.Kessler](https://community.shotgridsoftware.com/u/Michael.Kessler)\
**Post date:** [December 8, 2020, 5:47pm UTC](https://community.shotgridsoftware.com/t/first-source-load-takes-far-longer-than-subsequent-loads/10623/7 "2020-12-08T17:47:49Z")

</div>

Hey @bernie, sorry for the late reply. Yeah, I’ve tried various formats (h264 mov, jpg, png, exr) and it seems to happen regardless.

If you guys don’t have an RTX 2080 in the hardware cache (plus, access, since COVID and all) I was wondering if the community at large has Win10+RTX 2080 that could help me try to come up with a separate reproduction.

I’ve tried short sequences, and long sequences alike; nothing seems to change the time dramatically.

---

<div class="post-metadata">

**Author:** ![Michael.Kessler](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/michael.kessler/32/183_2.png) [@Michael.Kessler](https://community.shotgridsoftware.com/u/Michael.Kessler)\
**Post date:** [March 17, 2022, 8:07pm UTC](https://community.shotgridsoftware.com/t/first-source-load-takes-far-longer-than-subsequent-loads/10623/9 "2022-03-17T20:07:37Z")

</div>

Hi, sorry to poke this one; but I’m seeing others complain about this. Were you able to reproduce this on Autodesk’s side?

Thanks,  
-Kessler

---

<div class="post-metadata">

**Author:** ![Michael.Kessler](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/michael.kessler/32/183_2.png) [@Michael.Kessler](https://community.shotgridsoftware.com/u/Michael.Kessler)\
**Post date:** [March 23, 2022, 4:42pm UTC](https://community.shotgridsoftware.com/t/first-source-load-takes-far-longer-than-subsequent-loads/10623/10 "2022-03-23T16:42:32Z")

</div>

I’ve made case number 18850487  
If anyone else has this problem, I’d love to see if we can crowdsource the common cause to help Autodesk narrow in on a fix.

---

<div class="post-metadata">

**Author:** ![Michael.Kessler](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/michael.kessler/32/183_2.png) [@Michael.Kessler](https://community.shotgridsoftware.com/u/Michael.Kessler)\
**Post date:** [March 24, 2022, 5:39pm UTC](https://community.shotgridsoftware.com/t/first-source-load-takes-far-longer-than-subsequent-loads/10623/11 "2022-03-24T17:39:16Z")

</div>

So far, all verified reproductions have occurred on Threadripper or Threadripper Pro machines, though there are some unverified reproductions on Xeon machines. At least one Intel laptop and one Xeon desktop have _not_ reproduced.

Interestingly, a nearly duplicate specc’ed Threadripper running ProxMox with a passthrough GPU does not reproduce.

---

<div class="post-metadata">

**Author:** ![Michael.Kessler](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/michael.kessler/32/183_2.png) [@Michael.Kessler](https://community.shotgridsoftware.com/u/Michael.Kessler)\
**Post date:** [March 24, 2022, 9:33pm UTC](https://community.shotgridsoftware.com/t/first-source-load-takes-far-longer-than-subsequent-loads/10623/12 "2022-03-24T21:33:38Z")

</div>

This happens when CPUs provide more than 64 cores.

Test methodology:

Binary Search of vCPU count of ProxMox with passthrough GPU  
Validate with BIOS CPU core limiting. On bare-metal, when given equal to or fewer than 64-cores, the load time decreases rapidly. Reducing the CPU count further _reduces_ first load time.

@autodesk, do you happen to have any machines with with greater than 64 cores (hyperthreading included)? It appears that potentially the PBO buffer code might be thread-locking or some other behavior based on the maximum number of cores a machine has.
