Uneven reading frequency at start of application

Post questions, comments and feedback to our 3Dconnexion Windows Development Team.

Moderator: Moderators

Post Reply
Jon
Posts: 5
Joined: Tue Aug 09, 2016 4:52 am

Uneven reading frequency at start of application

Post by Jon »

Hi!

I'm more or less finished with my integration with the 3DxWare SDK. However I have a problem:

At the start of my application, I get the proper readings (from window messages) but with pretty uneven frequency. Switching to another application and back (ie Alt-TAB) resolves the problem and I get even readings.

The SDK is linked to a new hidden window I create, and handles nothing else apart from the SDK.

Does anyone know the reason behind this? The example 3DxTest32 works fine.

I've logged the delta times between incoming messages below:

Before Alt-TAB
7.552000 ms
15.898000 ms
169.900998 ms
11.955000 ms
10.144000 ms
169.476002 ms
13.368000 ms
9.153000 ms
15.957000 ms
160.053998 ms
12.691000 ms
7.601000 ms
11.788000 ms
167.876005 ms
12.891000 ms
6.867000 ms
6.839000 ms
13.454000 ms
163.495004 ms
13.675000 ms
7.270000 ms
7.559000 ms
16.226999 ms
153.095007 ms
12.934000 ms
7.424000 ms

After Alt-TAB
15.957000 ms
16.034000 ms
16.094999 ms
15.846999 ms
16.038001 ms
15.962999 ms
15.976001 ms
16.036000 ms
16.336000 ms
15.805000 ms
16.222000 ms
15.660999 ms
16.016001 ms
15.942000 ms
16.238000 ms
16.311999 ms
15.377000 ms
16.140001 ms
16.360000 ms
15.611000 ms
16.007001 ms
15.995000 ms
16.050000 ms
15.933000 ms
16.013000 ms
16.008999 ms

Regards
-Jon
Jon
Posts: 5
Joined: Tue Aug 09, 2016 4:52 am

Re: Uneven reading frequency at start of application

Post by Jon »

Seems this only happens in debug so it might have to do with the windows message pump.
Post Reply