Jump to content


Photo

Drawing the CPU usage


  • Please log in to reply
4 replies to this topic

#1 gameside

gameside

    GMC Member

  • GMC Member
  • 70 posts

Posted 10 May 2012 - 10:48 AM

hi there!
in my new project i want to draw the history usage of memory and history usage of CPU just like the below image
but i cant make it i tried to use the gm function

draw_point(x,y) Draws a point at (x,y)
draw_line(x1,y1,x2,y2)
draw_line_width(x1,y1,x2,y2,w)

but it doesn't work,can anyone make a simple gmk or just a script that work like below image

Posted Image

thanks!
  • 0

#2 gameside

gameside

    GMC Member

  • GMC Member
  • 70 posts

Posted 11 May 2012 - 05:37 AM

can anyone help me plezz
  • 0

#3 icuurd12b42

icuurd12b42

    Self Formed Sentient

  • Global Moderators
  • 14393 posts
  • Version:GM:Studio

Posted 11 May 2012 - 06:34 AM

you need data points and you need to store them in an array, or even use the path functions since you can store x and y values in there and GM has function to draw the path
  • 0

#4 MonopolyKing

MonopolyKing

    GMC Member

  • New Member
  • 938 posts

Posted 11 May 2012 - 05:18 PM

Can GameMaker make System Calls (assuming that that is what it is called when one allocates information like the CPU Usage)? Would the TC, not be better off using another language like Java?
  • 0

#5 icuurd12b42

icuurd12b42

    Self Formed Sentient

  • Global Moderators
  • 14393 posts
  • Version:GM:Studio

Posted 11 May 2012 - 05:45 PM

Can GameMaker make System Calls (assuming that that is what it is called when one allocates information like the CPU Usage)? Would the TC, not be better off using another language like Java?


GM has no low level functions so you would need a dll...

GM is not good for that type of tool because GM itself is a CPU hog.

Java or actually a language closer to the operating system is better for these. I would use VB in this case or c# of c++ if you don't mind struggling with the ui.
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users