MT or "switch" CPU ?

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
AUGE_OHR
Posts: 2093
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

MT or "switch" CPU ?

Post by AUGE_OHR »

hi,

this Demo run as many Thread as CPU Core are available.
MCPU.zip
EXE and Source
(1.29 MiB) Downloaded 53 times
it do use MT=yes and that force my i7-6700T to use 6 (of 8 ) Core using > 60 % CPU
MT_FRRACTAL.jpg
MT_FRRACTAL.jpg (145.06 KiB) Viewed 371 times
now i have a TIMER to "switch" Core of CPU.
use any parameter to enable it

Code: Select all

   MCPU.EXE XXX -> will start TIMER
this will show same Graphic to paint 1000 Lines but use < 25 % CPU
so i try to use mt=no but that make no Difference with this Demo

so what is using so much CPU ... "just" Paint some Graphic ...

Tip : start Taskmanager before run Demo and move it to right Side and watch CPU %
have fun
Jimmy
User avatar
AUGE_OHR
Posts: 2093
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: MT or "switch" CPU ?

Post by AUGE_OHR »

have add Source

---

update Source with better Fractal Graphic
MCPU03.zip
(4.9 KiB) Downloaded 61 times
p.s. it is slower when "switch" CPU ...but not much.
still wonder why it use so much CPU % when not "switch" CPU
have fun
Jimmy
Post Reply