Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-06-2011, 10:05 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
Memory Stats (/stats)

Era iPhone stats:

1. 1.631842851 % -Player/HealthControl
2. 0.50121665 % -GUI/Guilds (gui_guilds)
3. 0.451026757 % Shovel
4. 0.446960131 % -Games (gui_create,gui_games)
5. 0.205380519 % Control-NPC
6. 0.182369947 % PlayerControl (in level control.nw at pos (30.5, 30))
7. 0.167559782 % Guns/M4 (weapongun)
8. 0.128338336 % Mining/Drill
9. 0.107247432 % Guns/Uzi (weapongun)
10. 0.094687143 % -GUI/Map

is this good? we have 583 players on...
__________________
Reply With Quote
  #2  
Old 03-06-2011, 10:08 PM
WhiteDragon WhiteDragon is offline
Banned
Join Date: Feb 2007
Posts: 1,002
WhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to behold
This isn't memory, it's CPU. See /memstats full for memory statistics. And I suppose it's good? What does /clientstats someplayer say for the average player?
Reply With Quote
  #3  
Old 03-06-2011, 10:23 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
Memory taken by objects: 91095547

Player

Stats:
System:
Time: Sun Mar 6 15:21:05 2011
Client-version: 5.314
OS: iphone 10.3.1 Darwin Kernel Version 10.3.1: Fri May 28 16:46:17 PDT 2010; root:xnu-1504.2.50~4/RELEASE_ARM_S5L8930X
CPU: arm

Memory (in bytes):
Total: 69094064
Bitmaps: 4137700
Drawing panels: 1792384
Textures (possibly in video RAM): 9169330

Game engine profiler:
Started the engine profiler, it will be displayed on next call.

Top 50 of npcs taken most CPU time:
(none)
Started the script function profiling, it will be displayed on next call.

Then after

Stats:
System:
Time: Sun Mar 6 15:22:21 2011
Client-version: 5.314
OS: iphone 10.3.1 Darwin Kernel Version 10.3.1: Fri May 28 16:46:17 PDT 2010; root:xnu-1504.2.50~4/RELEASE_ARM_S5L8930X
CPU: arm

Memory (in bytes):
Total: 65808192
Bitmaps: 642376
Drawing panels: 1788288
Textures (possibly in video RAM): 9185978

Game engine profiler:
Measured time: 75.885748028 seconds
Ordered by non-sub total time:
%NSTime % Time Invoke # Name
19.124 19.124 1259 Draw_Tiles
9.903 11.848 8072 DrawAni
9.197 9.197 21548 Draw_ShowImg
8.381 8.381 879 LoadBitmap
7.224 14.025 33993 Game_Draw_NPC
6.668 9.893 23082 Draw_Bitmap
6.451 86.647 1259 RenderGUI
6.313 6.707 1258 Scripts
5.097 5.288 1478 Draw_ButtonCtrl
4.621 55.144 1259 Game_Draw
4.301 4.301 3586 Draw_Text
3.243 13.352 1259 Timer
2.150 2.355 1259 Game_Draw_GetDrawObjects
1.930 2.179 2449 Draw_BitmapButton
1.442 1.442 1259 Networking
1.008 1.008 27571 Draw_Clip
0.970 1.006 303 Draw_MLTextCtrl
0.745 10.088 1259 Game_Timer
0.645 7.900 1258 PlayerTimer
0.239 0.239 1259 Game_Draw_Texts
0.117 3.414 1259 Game_Draw_Player
0.055 0.055 1258 AnimateLevel_NPCs
0.051 0.106 1258 PlayerTimer_AnimateLevel
0.044 0.518 425 Draw_GuiShowImgCtrl
0.029 0.029 174 Draw_DrawingPanel
0.020 0.440 2 TilesBuffer_Draw2DArea
0.012 0.012 8 GarbageCollector

Function tree:
%NSTime % Time Invoke # Name
255.287 155.287 0 Other applications
86.647 6.451 1259 RenderGUI
55.144 4.621 1259 Game_Draw
19.124 19.124 1259 Draw_Tiles
14.025 7.224 33993 Game_Draw_NPC
5.910 5.361 5036 DrawAni
0.548 0.548 36 LoadBitmap
0.890 0.890 204 LoadBitmap
9.197 9.197 21548 Draw_ShowImg
3.414 0.117 1259 Game_Draw_Player
3.296 2.743 1259 DrawAni
0.552 0.552 30 LoadBitmap
2.355 2.150 1259 Game_Draw_GetDrawObjects
0.205 0.205 39 LoadBitmap
2.167 1.335 1352 DrawAni
0.831 0.831 41 LoadBitmap
0.239 0.239 1259 Game_Draw_Texts
9.893 6.668 23082 Draw_Bitmap
3.225 3.225 357 LoadBitmap
5.288 5.097 1478 Draw_ButtonCtrl
0.191 0.191 7 LoadBitmap
4.301 4.301 3586 Draw_Text
2.179 1.930 2449 Draw_BitmapButton
0.249 0.249 44 LoadBitmap
1.008 1.008 27571 Draw_Clip
1.006 0.970 303 Draw_MLTextCtrl
0.035 0.035 6 LoadBitmap
0.815 0.815 22 LoadBitmap
0.518 0.044 425 Draw_GuiShowImgCtrl
0.473 0.461 425 DrawAni
0.011 0.011 1 LoadBitmap
0.029 0.029 174 Draw_DrawingPanel
13.352 3.243 1259 Timer
10.088 0.745 1259 Game_Timer
7.900 0.645 1258 PlayerTimer
6.707 6.313 1258 Scripts
0.381 0.381 87 LoadBitmap
0.012 0.012 8 GarbageCollector
0.440 0.020 2 TilesBuffer_Draw2DArea
0.420 0.420 1 LoadBitmap
0.106 0.051 1258 PlayerTimer_AnimateLevel
0.055 0.055 1258 AnimateLevel_NPCs
1.442 1.442 1259 Networking
0.020 0.020 4 LoadBitmap

Top 50 of npcs taken most CPU time:
1. 0.153169631 % Weapon -GUI/PMWindow
iPhonePMAlertButton.onAction: 0.044749287 %
iPhonePMAlertButton.onAction=>openPMWindow: 0.03391393 %
iPhonePMAlertButton.onAction=>updatePMIcon: 0.008930096 %
iPhonePMWindowButtonClose.onAction: 0.006467268 %
iPhonePMWindowButtonClose.onAction=>destroyPMWindo w: 0.006190488 %
iPhonePMWindowButtonClose.onAction=>destroyPMWindo w=>updatePMIcon: 0.000263428 %
onActionclientside: 0.036396314 %
onActionclientside=>updatePMIcon: 0.013511739 %
2. 0.012040138 % Weapon -Games
onActionClientSide: 0.091150153 %

Class gui_games:
Games_MessageBox_OKButton.onAction: 0.001129336 %
onActionClientSide=>handleServerData: 0.079551972 %
sendToServer: 0.009111818 %
3. 0.003979802 % Weapon -GUI/Chat
Classic_ChatField.onAction: 0.002066166 %
Classic_ChatField.onAction=>filterChat: 0.000783991 %
Classic_ChatField.onLoseFirstResponder: 0.000044768 %
Classic_ChatField.onMouseDown: 0.000216143 %
Classic_GuildChatField.onAction: 0.002414022 %
onPlayerChats: 0.000069822 %
updateGuildButton: 0.001340059 %
4. 0.003530383 % Weapon -Games_Profile
Class gui_profile:
Games_ProfileWindow.onAnimationFinished: 0.001336207 %
Games_ProfileWindow_BackButton0.onAction: 0.003643409 %
Games_ProfileWindow_BackButton0.onAction=>closePro file: 0.003302151 %
Games_ProfileWindow_BackButton0.onAction=>closePro file=>closeProfilePanels: 0.000357123 %
Games_ProfileWindow_EditButton0.onAction: 0.529053357 %
GraalControl.onMouseDown: 0.128589279 %
GraalControl.onMouseDown=>showProfile: 0.126205579 %
GraalControl.onMouseDown=>showProfile=>addBackButt on: 0.005938908 %
GraalControl.onMouseDown=>showProfile=>addTitleCon trol: 0.00196343 %
onAnimateChar: 0.000629893 %
setProfile: 0.033240091 %
setProfile=>setProfileObject: 0.023442965 %
showProfile: 0.271347634 %
showProfile=>addBackButton: 0.014194129 %
showProfile=>addTitleControl: 0.004117871 %
5. 0.002440214 % Weapon -Player/Movement
GraalControl.onMouseDown: 0.002146417 %
GraalControl.onMouseUp: 0.001482441 %
MouseMovement_Overlay.onMouseDown: 0.031381726 %
MouseMovement_Overlay.onMouseDown=>checkKeyPadMove ment: 0.028206356 %
MouseMovement_Overlay.onMouseDown=>checkKeyPadMove ment=>onTimeout: 0.020348908 %
MouseMovement_Overlay.onMouseDown=>checkKeyPadMove ment=>onTimeout=>movePlayer: 0.011681321 %
MouseMovement_Overlay.onMouseDown=>checkKeyPadMove ment=>onTimeout=>onSetWalkAni: 0.002680017 %
MouseMovement_Overlay.onMouseDragged: 0.018429078 %
MouseMovement_Overlay.onMouseDragged=>checkKeyPadM ovement: 0.011193824 %
MouseMovement_Overlay.onMouseLeave: 0.002164952 %
MouseMovement_Overlay.onMouseLeave=>releaseAllMove mentKeys: 0.001213755 %
MouseMovement_Overlay.onMouseUp: 0.00934358 %
MouseMovement_Overlay.onMouseUp=>releaseAllMovemen tKeys: 0.00754101 %
MouseMovement_Overlay.onMouseUp=>releaseAllMovemen tKeys=>setIdleAni: 0.002897651 %
MouseMovement_ShootOverlay.onMouseDown: 0.000781315 %
MouseMovement_ShootOverlay.onMouseDown=>checkKeyPa dShoot: 0.000491502 %
MouseMovement_ShootOverlay.onMouseDown=>checkKeyPa dShoot=>pausedir: 0.000080424 %
MouseMovement_ShootOverlay.onMouseDragged: 0.002352035 %
onDoGrab: 0.003578907 %
onReleaseGrab: 0.00249427 %
onReleaseGrab=>setIdleAni: 0.00155619 %
onRevertAnimations: 0.000039584 %
onTimeout: 0.078735645 %
onTimeout=>movePlayer: 0.037223368 %
onTimeout=>onSetWalkAni: 0.017419683 %
pauseani: 0.000101473 %
6. 0.000690817 % iPhonePMWindowScroll
7. 0.000299811 % iPhonePMWindowContent
8. 0.000299811 % iPhonePMWindowContent
__________________
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 02:50 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.