Re: Rendering and physics thread repartition(scheduling?)



Hello David,

No it wasn't.

All the measures I did on that sample confirm the theory (even the 6
single frames).

It was about your physics thread being coded to run even
when it had no work to do. You should simply have coded the physics
thread to run only when it was appropriate for it to run.

As I said in the first post, I did delay physics routine to do the work
only when needed (every 20ms). It made things better but it did not
solve the problem.


Alternatively, you could have reduced the priority of the physics
thread.

As I also said in the first post, I did that. It did not help (the
result was even worse).

The problem is simply that you gave your physics thread an infinite
amount of work to do. Then you expected the scheduler to figure out how
to deal with that.

So how to tell the scheduler to run physics every 20ms?

.



Relevant Pages

  • Re: Are SR effects real or not? Simplified case.
    ... ships -- so light that it cannot affect the motion of the ships. ... between them with respect to their intial rest frames. ... physics department and later told us that the little paper had been ... shortened" and "according to observer B" and the like. ...
    (sci.physics.relativity)
  • Re: Are SR effects real or not? Simplified case.
    ... ships -- so light that it cannot affect the motion of the ships. ... between them with respect to their intial rest frames. ... physics department and later told us that the little paper had been ... shortened" and "according to observer B" and the like. ...
    (sci.physics.relativity)
  • Re: The physical paradox of the twins.
    ... >In the case of your example of the twin paradox, ... >when the tree was 4 feet. ... a change in frames occurs. ... But it is also nice to know physics. ...
    (sci.physics.relativity)
  • Re: Why SR? (was: Source Independency of Light Speed Without an Aether???????)
    ... Similar to when you move away from a sound ... to have the laws of physics work in all inertial frames you end up ... physicists changed the nature of physics and declared that a physics ... at different speeds. ...
    (sci.physics.relativity)