Skip to main content
gamedev.net
🔒 Locked

CPU Usage

Started by raiter Oct 29, 2002 at 9:34 AM 2 replies 850+ views
Original Post
raiter
raiter
Hi, When running the DMBoids example from the SDK I get CPU Usage of about 3%. When running all other examples (Direct3D examples) the CPU Usage is always 100%. Did anyone notice that, and know the reason? I''m having problems doing some multi threads applications because of that. Thanks.
raiter
raiter
thanks for the reply.

But I still can''t find the reason why only the DMBoids example takes just 3% CPU Power.

All the examples in the SDK (inluding DMBoids) use the framework CD3DApplication provided by Microsoft.
Darrell L
Darrell L
It''s the music. Or rather, it''s the call to the BoidMusic::HandleNotifies function in the app''s FrameMove function.

BoidMusic::HandleNotifies has a WaitForSingleObject call in it, which times out after 2 ms.

They''re actually using the "beat" of the music is smooth out the boids frame movement.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.