# Control render delay opening window

**URL:** <https://forum.xojo.com/t/control-render-delay-opening-window/36889>\
**Category:** Windows\
**Created:** [March 28, 2017, 10:02am UTC](https://forum.xojo.com/t/control-render-delay-opening-window/36889 "2017-03-28T10:02:01Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon20074439](https://forum.xojo.com/letter_avatar_proxy/v4/letter/a/ac8455/32.png) [@anon20074439](https://forum.xojo.com/u/anon20074439)\
**Post date:** [March 28, 2017, 10:02am UTC](https://forum.xojo.com/t/control-render-delay-opening-window/36889/1 "2017-03-28T10:02:01Z")

</div>

Does anyone know why there is a delay drawing the listbox in the second part of the video below?

Everything here is a new project, with no code changes, all I’ve done is dropped on a textbox, button and listbox (in that order), all default settings no changes have been made (I have also tried a fresh reboot). PC specs are not an issue.

This only happens in windows from 2016r4.1 onwards, 2016r3 is fine and fast, I have tested 2016r4.1 on mac and it works without delay.

[https://www.dropbox.com/s/tp4s5b5t2nktpvs/ControlDelay.mp4?raw=1](https://www.dropbox.com/s/tp4s5b5t2nktpvs/ControlDelay.mp4?raw=1)

Thanks

---

<div class="post-metadata">

**Author:** ![Maurizio\_Rossi](https://forum.xojo.com/letter_avatar_proxy/v4/letter/m/ba8739/32.png) [@Maurizio\_Rossi](https://forum.xojo.com/u/Maurizio_Rossi)\
**Post date:** [March 28, 2017, 10:25am UTC](https://forum.xojo.com/t/control-render-delay-opening-window/36889/2 "2017-03-28T10:25:02Z")

</div>

As someone else suggested, if possible skip 2016r4.1 on Windows…

---

<div class="post-metadata">

**Author:** ![anon20074439](https://forum.xojo.com/letter_avatar_proxy/v4/letter/a/ac8455/32.png) [@anon20074439](https://forum.xojo.com/u/anon20074439)\
**Post date:** [March 28, 2017, 10:45am UTC](https://forum.xojo.com/t/control-render-delay-opening-window/36889/3 "2017-03-28T10:45:32Z")

</div>

> [@323096:@Maurizio Rossi](#):
>
> As someone else suggested, if possible skip 2016r4.1 on Windows…

The same thing happens on 2017r1 though (what I was actually using when I saw the problem), which is why I went back to see where it was introduced.

---

<div class="post-metadata">

**Author:** ![Greg\_O\_Lone](https://forum.xojo.com/user_avatar/forum.xojo.com/greg_o_lone/32/49_2.png) [@Greg\_O\_Lone](https://forum.xojo.com/u/Greg_O_Lone)\
**Post date:** [March 28, 2017, 10:55am UTC](https://forum.xojo.com/t/control-render-delay-opening-window/36889/4 "2017-03-28T10:55:13Z")

</div>

> [@323097:@](#):
>
> The same thing happens on 2017r1 though (what I was actually using when I saw the problem), which is why I went back to see where it was introduced.

Is this a physical machine or virtual?

---

<div class="post-metadata">

**Author:** ![anon20074439](https://forum.xojo.com/letter_avatar_proxy/v4/letter/a/ac8455/32.png) [@anon20074439](https://forum.xojo.com/u/anon20074439)\
**Post date:** [March 28, 2017, 11:09am UTC](https://forum.xojo.com/t/control-render-delay-opening-window/36889/5 "2017-03-28T11:09:48Z")

</div>

Physical

---

<div class="post-metadata">

**Author:** ![Greg\_O\_Lone](https://forum.xojo.com/user_avatar/forum.xojo.com/greg_o_lone/32/49_2.png) [@Greg\_O\_Lone](https://forum.xojo.com/u/Greg_O_Lone)\
**Post date:** [March 28, 2017, 11:12am UTC](https://forum.xojo.com/t/control-render-delay-opening-window/36889/6 "2017-03-28T11:12:56Z")

</div>

> [@323103:@](#):
>
> Physical

Interesting. 2016r4 introduced Direct2D and with it, hardware acceleration of graphics. Does your graphics card support Direct2D?

I only ask because the IDE is quite snappy on my physical machine.

---

<div class="post-metadata">

**Author:** ![anon20074439](https://forum.xojo.com/letter_avatar_proxy/v4/letter/a/ac8455/32.png) [@anon20074439](https://forum.xojo.com/u/anon20074439)\
**Post date:** [March 28, 2017, 11:18am UTC](https://forum.xojo.com/t/control-render-delay-opening-window/36889/7 "2017-03-28T11:18:28Z")

</div>

> [@323104:@Greg O'Lone](#):
>
> Does your graphics card support Direct2D?

According to the wiki, Direct2D is supported on any card that can support Direct3D Feature Level 9 with WDDM 1.1

EVGA Titan X (pascal)  
(from dxdiag)  
Feature Levels: 12\_1,12\_0,11\_1,11\_0,10\_1,10\_0,9\_3,9\_2,9\_1  
Driver Model: WDDM 2.1

So that would be a resounding yes 🙂

---

<div class="post-metadata">

**Author:** ![Greg\_O\_Lone](https://forum.xojo.com/user_avatar/forum.xojo.com/greg_o_lone/32/49_2.png) [@Greg\_O\_Lone](https://forum.xojo.com/u/Greg_O_Lone)\
**Post date:** [March 28, 2017, 11:41am UTC](https://forum.xojo.com/t/control-render-delay-opening-window/36889/8 "2017-03-28T11:41:12Z")

</div>

Could you make that exact project available so I can try it here?

---

<div class="post-metadata">

**Author:** ![anon20074439](https://forum.xojo.com/letter_avatar_proxy/v4/letter/a/ac8455/32.png) [@anon20074439](https://forum.xojo.com/u/anon20074439)\
**Post date:** [March 28, 2017, 12:10pm UTC](https://forum.xojo.com/t/control-render-delay-opening-window/36889/9 "2017-03-28T12:10:34Z")

</div>

[https://www.dropbox.com/s/vs6ub3emnb9fonl/BugSlowControlDraw.xojo\_binary\_project?raw=1](https://www.dropbox.com/s/vs6ub3emnb9fonl/BugSlowControlDraw.xojo_binary_project?raw=1)

---

<div class="post-metadata">

**Author:** ![Joost\_Rongen](https://forum.xojo.com/letter_avatar_proxy/v4/letter/j/a9a28c/32.png) [@Joost\_Rongen](https://forum.xojo.com/u/Joost_Rongen)\
**Post date:** [March 28, 2017, 12:15pm UTC](https://forum.xojo.com/t/control-render-delay-opening-window/36889/10 "2017-03-28T12:15:20Z")

</div>

As I am on Windows also, I would like to test it also on vm and physical windows machines.  
But please, could you provide a zip rather then a binary? My browser gets screwed on this link.

---

<div class="post-metadata">

**Author:** ![anon20074439](https://forum.xojo.com/letter_avatar_proxy/v4/letter/a/ac8455/32.png) [@anon20074439](https://forum.xojo.com/u/anon20074439)\
**Post date:** [March 28, 2017, 12:24pm UTC](https://forum.xojo.com/t/control-render-delay-opening-window/36889/11 "2017-03-28T12:24:47Z")

</div>

[https://www.dropbox.com/s/331rotrgrirx8co/BugSlowControlDraw.zip?raw=1](https://www.dropbox.com/s/331rotrgrirx8co/BugSlowControlDraw.zip?raw=1)

Let me know if that doesnt work Joost, and I’ll host it off dropbox

---

<div class="post-metadata">

**Author:** ![Joost\_Rongen](https://forum.xojo.com/letter_avatar_proxy/v4/letter/j/a9a28c/32.png) [@Joost\_Rongen](https://forum.xojo.com/u/Joost_Rongen)\
**Post date:** [March 28, 2017, 1:12pm UTC](https://forum.xojo.com/t/control-render-delay-opening-window/36889/12 "2017-03-28T13:12:16Z")

</div>

Julian, I’ve tested with 2017R1 build on 2 totally different Win7 physical machines and Win7 VM, and Win10 on VM.  
I don’t see the problem as you recorded. Here your project worked fully as expected.

---

<div class="post-metadata">

**Author:** ![anon20074439](https://forum.xojo.com/letter_avatar_proxy/v4/letter/a/ac8455/32.png) [@anon20074439](https://forum.xojo.com/u/anon20074439)\
**Post date:** [March 28, 2017, 1:36pm UTC](https://forum.xojo.com/t/control-render-delay-opening-window/36889/13 "2017-03-28T13:36:39Z")

</div>

Hmmm interesting.

I have built the project and run it on my desktop where it shows the delay. I’ve then copied the built version to a windows 2012 vm and it runs with no delay on opening.

Any pointers for how I can go about diagnosing this?

---

<div class="post-metadata">

**Author:** ![anon20074439](https://forum.xojo.com/letter_avatar_proxy/v4/letter/a/ac8455/32.png) [@anon20074439](https://forum.xojo.com/u/anon20074439)\
**Post date:** [March 28, 2017, 2:14pm UTC](https://forum.xojo.com/t/control-render-delay-opening-window/36889/14 "2017-03-28T14:14:46Z")

</div>

I’m about to reinstall windows on this machine anyway, I’ll report back in a few hours if its any different on a fresh install.

---

<div class="post-metadata">

**Author:** ![anon20074439](https://forum.xojo.com/letter_avatar_proxy/v4/letter/a/ac8455/32.png) [@anon20074439](https://forum.xojo.com/u/anon20074439)\
**Post date:** [March 28, 2017, 3:41pm UTC](https://forum.xojo.com/t/control-render-delay-opening-window/36889/15 "2017-03-28T15:41:58Z")

</div>

Well a fresh install of windows fixed that problem.

No doubt, 2-3 months down the road I’ll reinstall something it doesn’t like and it’ll happen again 😉

Thanks for looking into it everyone.

---

<div class="post-metadata">

**Author:** ![anon20074439](https://forum.xojo.com/letter_avatar_proxy/v4/letter/a/ac8455/32.png) [@anon20074439](https://forum.xojo.com/u/anon20074439)\
**Post date:** [March 28, 2017, 4:06pm UTC](https://forum.xojo.com/t/control-render-delay-opening-window/36889/16 "2017-03-28T16:06:43Z")

</div>

Hmm, the problem is back already.

---

<div class="post-metadata">

**Author:** ![anon20074439](https://forum.xojo.com/letter_avatar_proxy/v4/letter/a/ac8455/32.png) [@anon20074439](https://forum.xojo.com/u/anon20074439)\
**Post date:** [March 28, 2017, 4:33pm UTC](https://forum.xojo.com/t/control-render-delay-opening-window/36889/17 "2017-03-28T16:33:55Z")

</div>

Preliminary investigation looks like its happening due to the latest install of my nvidia drivers which updated a few days ago (I thought I’d not seen this problem before).

v378.92 update on 2017.3.20

I’ve just removed them from my new windows install and the delay has gone.

I’ll try putting on the previous version of the drivers and see if the problem re-appears. If not I’ll try the latest version and see what happens.

I will report back.

---

<div class="post-metadata">

**Author:** ![anon20074439](https://forum.xojo.com/letter_avatar_proxy/v4/letter/a/ac8455/32.png) [@anon20074439](https://forum.xojo.com/u/anon20074439)\
**Post date:** [March 28, 2017, 4:42pm UTC](https://forum.xojo.com/t/control-render-delay-opening-window/36889/18 "2017-03-28T16:42:18Z")

</div>

nvidia drivers 378.78 run at expected speed without any delay on startup

Moving to latest drivers for next test.

---

<div class="post-metadata">

**Author:** ![anon20074439](https://forum.xojo.com/letter_avatar_proxy/v4/letter/a/ac8455/32.png) [@anon20074439](https://forum.xojo.com/u/anon20074439)\
**Post date:** [March 28, 2017, 4:52pm UTC](https://forum.xojo.com/t/control-render-delay-opening-window/36889/19 "2017-03-28T16:52:33Z")

</div>

Well its working fine with the latest drivers now.

That’s stumped me.

---

<div class="post-metadata">

**Author:** ![anon20074439](https://forum.xojo.com/letter_avatar_proxy/v4/letter/a/ac8455/32.png) [@anon20074439](https://forum.xojo.com/u/anon20074439)\
**Post date:** [March 28, 2017, 8:13pm UTC](https://forum.xojo.com/t/control-render-delay-opening-window/36889/20 "2017-03-28T20:13:57Z")

</div>

After another windows reinstall I’ve figured out the problem. It lies with nvidia’s abaility to record any directx output.

![](https://www.dropbox.com/s/95pnlg6r7uns31d/2017-03-28_20-47-10.png?raw=1)

The action of turning this option on/off causes an ever so slight delay in drawing the listbox.

If you turn this option on and place a number of listboxes on the window you can actually see each one draw when the window is opened. If you turn it off and try it, the draw is instant.

I’m assuming that the delay is caused because the whole window isnt a single direct2d render target so the delay happens mid draw as each render target is created.

I’ll create a feedback about this later to see if it can be looked at.

[Next page](https://forum.xojo.com/t/control-render-delay-opening-window/36889.md?page=2)
