Re: Dual core and the Sample Framework



This may help
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/directx9_c/Game_Timing_and_Multicore_Processors.asp?frame=true

However it sounds like you are talking more about issues with the sample
framework - as far as I know (and I just searched the sample framework for
'thread') the sample code is not actually multithreaded - it certainly
doesn't turn on the multithreaded flag for D3D. So what you are seeing is (I
assume) your application being switched across the processors by windows as
part of its context switching (I had no clue that it could do that). From
the above article though setting processor affinity is the correct way to
fix this.

--
Zman
http://www.thezbuffer.com - News and information for Managed DirectX



"Peter C." <PeterC@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:D07E909C-556F-4C65-8478-B4632400D675@xxxxxxxxxxxxxxxx
If this is an old topic or if it's already solved, I'm quite sorry.

I'm using the February 2006 SDK to make an MDX2.0 app. On my dual core
machine, the timing from the Sample Framework (totalTime, elapsedTime)
gets
screwed up. I found the cause, which is that the render code is run in
threads which run on both cores. Since the cores have slightly different
clock counters and the time is based on them, the current time jumps
backward
and forward small amounts and makes the animation terribly jumpy. Setting
the
current Process's affinity to either core solves the problem.

Is there a way around this issue without limiting the entire app to one
core? I've thought about workarounds but I haven't come up with anything
very
bright yet.


.



Relevant Pages

  • Re: Why I believe in static analysis
    ... > make sure that no one is using the primitives outside the core. ... Our "reliable core" is a framework that coordinates several ... programmers writing simple application code without having to be ... if only the applications were that simple. ...
    (comp.lang.lisp)
  • Framework recommendations for web service?
    ... as possible and also because our web interface for the app is written ... As we're extracting the core we'll be translating it to Python to make ... What we *do* need is a lightweight, simple framework that will allow ... us to create a RESTful interface and throw code together fast. ...
    (comp.lang.python)
  • Re: Framework recommendations for web service?
    ... as possible and also because our web interface for the app is written ... As we're extracting the core we'll be translating it to Python to make ... What we *do* need is a lightweight, simple framework that will allow ... us to create a RESTful interface and throw code together fast. ...
    (comp.lang.python)
  • [RFC] OMAP1 PM Core, Intro 0/2
    ... PM Core for OMAP1 platforms. ... clock/voltage framework to access hardware. ... Basic building block for PM Core layer is platform power parameter concept. ...
    (Linux-Kernel)
  • Re: which is a better dev language
    ... Java is not real time either - no runtime with a GC is. ... Managed code on the desktop succeeds for the same ... Run a .NET app on a Palm device with a Palm OS? ... Managed code has a slow startup as the framework is loaded and JITted ...
    (microsoft.public.pocketpc.developer)