|
  
|
|
|||||||
| Development Discussions All developers who are coding games may stop by here for any help, suggestions, and everything development related. |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#2 (permalink) |
|
zB Programmer
Jr. Member Join Date: May 2008
Location: Bremen, germany
Posts: 454
Reputation: 246
|
Code:
spriteBatch.DrawString(font, GC.GetTotalMemory(false).ToString(), new Vector2(10, 10), Color.White);
__________________
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. ![]() ![]() ![]() ![]() |
|
|
|
|
|
#3 (permalink) | |
|
Jr. Member
Join Date: Apr 2008
Posts: 392
Reputation: 121
|
Quote:
|
|
|
|
|
|
|
#4 (permalink) |
|
zB Programmer
Jr. Member Join Date: May 2008
Location: Bremen, germany
Posts: 454
Reputation: 246
|
Yes, its the amount of bytes... and it will drop down again when the garbage collector does its job.
__________________
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. ![]() ![]() ![]() ![]() |
|
|
|
|
|
#5 (permalink) | |
|
Purger of Ignorance
zB Programmer
Section Staff Super Zuner Join Date: Jun 2008
Location: In my own world
Posts: 1,670
Reputation: 231
|
Quote:
__________________
"Against logic there is no armor like ignorance." - Laurence J. Peter Solitaire for your Zune! To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. Zune Book Reader! To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. ![]() |
|
|
|
|
|
|
#6 (permalink) | |
|
Zuner
Join Date: Dec 2007
Posts: 56
Reputation: 26
|
Quote:
You'd have to convert 16 MBs to bytes or convert that value to MBs, but yea. Thanks DinoGames. Code:
//(16MBs in bytes - current bytes used)/bytes in a MB
long mbsleft = (16777216 - GC.GetTotalMemory(false))/1048576;
|
|
|
|
|
![]() |
| Thread Tools | |
|
|
| |