![]() |
| Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact |
| ||||||
This is a discussion on This returns a value when ran, what is it though? within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; I made it and ran it in lua player, but what is the value? its like around 60 - 150 ...
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 |
![]() |
I made it and ran it in lua player, but what is the value? its like around 60 - 150 every time.
Code:
--MEM red = Color.new(255,0,0) infoMem = gcinfo() while true do screen:clear() pad = Controls.read() screen:print(100,100,"mem: "..infoMem,red) if pad:start() then return end screen.waitVblankStart() screen:flip() end
__________________
...Just Returned To The Scene... |
|
|
|
|
|
#2 |
![]() |
Is gcinfo() a function you have written? If so could you post the source to that?
__________________
[b][center] [URL="http://forums.qj.net/showthread.php?t=65032"][SIZE="3"][COLOR="Blue"]Omicron[/COLOR] - [COLOR="DeepSkyBlue"]A hacking simulation game for the PSP[/COLOR][/SIZE][/URL] [url=http://profile.mygamercard.net/dr+nutterbutter][img]http://card.mygamercard.net/gbar/live/dr+nutterbutter.gif[/img][/url][/b][/center] |
|
|
|
|
|
#3 | |
![]() |
Quote:
__________________
...Just Returned To The Scene... |
|
|
|
|
|
|
#5 | |
![]() |
Quote:
__________________
...Just Returned To The Scene... |
|
|
|
|
|
|
#6 |
![]() |
Maybe if it is about to overflow, so you can avoid it from freezing/restarting.
__________________
[CENTER]Some of my homebrew Applications/Games: [URL=http://forums.qj.net/showthread.php?t=47294&page=1&pp=10]Planet Fighter[/URL] | [URL=http://forums.qj.net/showthread.php?p=641672#post641672]Graphic Creator (V2.0)[/URL] | [URL=http://forums.qj.net/showthread.php?p=512717]Fire Pong[/URL] | [B][URL="http://forums.qj.net/f-psp-development-forum-11/t-release-brushes-v20-99207.html#post1430891"][COLOR="Red"][SIZE="3"]Brushes v2.0[/COLOR][/SIZE][/B][/URL] [URL="http://forums.qj.net/f-psp-development-forum-11/t-release-brushes-v20-99207.html"][B][SIZE="2"][COLOR="Black"]Released![/COLOR][/SIZE][/B][/URL] [URL="http://haxxblaster.2u.se/"][COLOR="black"][FONT="Arial Black"]www.HaxxBlaster.com[/FONT][/COLOR][/URL] [URL="http://forums.qj.net/f-psp-development-forum-11/t-release-brushes-v20-99207.html"][IMG]http://img19.imageshack.us/img19/1346/brushesbannerqz3.png[/IMG][/URL][/CENTER] |
|
|
|
|
|
#7 | |
![]() |
Quote:
Code:
if infoMem > 5000 then System.Quit() end
__________________
...Just Returned To The Scene... |
|
|
|
|
|
|
#8 | |
![]() |
Quote:
__________________
[b][center] [URL="http://forums.qj.net/showthread.php?t=65032"][SIZE="3"][COLOR="Blue"]Omicron[/COLOR] - [COLOR="DeepSkyBlue"]A hacking simulation game for the PSP[/COLOR][/SIZE][/URL] [url=http://profile.mygamercard.net/dr+nutterbutter][img]http://card.mygamercard.net/gbar/live/dr+nutterbutter.gif[/img][/url][/b][/center] |
|
|
|
|
|
|
#11 |
![]() ![]() Developer
|
If it its greater then 5000 quit. No he wants greater.
-= Double Post =- This also could be good for testing. Incase you want to add more things and are not sure about the RAM usage.
__________________
![]() Last edited by uber0ne; 08-19-2006 at 12:57 PM.. Reason: Automerged Doublepost |
|
|
|
|
|
#12 |
![]() |
It returns the amount in use, not amount left...5000kb is really small, less than 5 mb...
__________________
HELP ME HAIRY LEG!!!! I have a 1.5 (downgraded) US PSP [code] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ ( P | S | P | - | P | r | o | g | r | a | m | m | i | n | g ) \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ _ _ _ _ _ / \ / \ / \ / \ / \ ( A | d | m | i | n ) \_/ \_/ \_/ \_/ \_/ [/code] |
|
|
|
|
|
#13 | |
![]() |
Quote:
The post was just an example of the syntax you would use. Like I said, I don't know how much memory lua scripts have access to. |
|
|
|
|
|
|
#14 |
![]() ![]() total-Z
|
From what I remember, its the ammount of memory allocated, and when you garbage collect, it becomes lower.
I remember it stands for garbage collect info
__________________
牧来栠摩琠敨映汩獥PSN: youresam From Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth |
|
|
|
![]() |
| Tags |
| ran , returns |
| Thread Tools | |
|
|