Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. System Admin
  4. CPU Usage on Windows (general question)

CPU Usage on Windows (general question)

Scheduled Pinned Locked Moved System Admin
questionc++graphicsgame-devhardware
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dannygilbert3
    wrote on last edited by
    #1

    Hi folks ! I am writing a video game with Direct-X and C++. I found that I use nearly 98% of the CPU usage. My specialty is embedded software where I can control the CPU usage because there is generally only one software in the system. But now, I write a game that "run" under Windows with other application. The PRIORITY LEVEL is set to NORMAL and I have a big loop (this is not EVEN-DRIVEN). The loop runs until a receive a QUIT message. For each loop, I look for Windows Message and execute it if I have one. If there is no Windows message, I render (update) the graphics of my game. So I use CPU for my game when the CPU is not busy. I have checked some other sample of games and they all reach 99% of the CPU usage. Is there something that I don't understand ? If some software has PRORITY LEVEL higher than normal, will it takes some CPU and the CPU usage of my game will drop ? Thanks for your comment.:-D

    Danny Gilbert, enginneer Montréal, Canada

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups