Setting up the inventory
by Aswin Shrestha · in Technical Issues · 10/18/2013 (5:42 am) · 18 replies
While trying to set up a new player, I didn't "loadOut" the player, i.e set the inventory.
This caused the FPS drop to 5-6, while normally (loading out the player), the FPS was about 24-25.
Why so much of a difference in the FPS? Does the system calls back the script for the inventory setup?
This caused the FPS drop to 5-6, while normally (loading out the player), the FPS was about 24-25.
Why so much of a difference in the FPS? Does the system calls back the script for the inventory setup?
#2
In the meantime I'm looking at the player spawning process to see what might be causing that slowdown. I just tried (stock full template) commenting out the call to %game.loadOut(%client.player) in GameCore::preparePlayer(%game, %client) with no noticeable performance impact.
10/23/2013 (4:15 pm)
Question: If this is a character configuration screen, why not use an AIPlayer and see how that performs?In the meantime I'm looking at the player spawning process to see what might be causing that slowdown. I just tried (stock full template) commenting out the call to %game.loadOut(%client.player) in GameCore::preparePlayer(%game, %client) with no noticeable performance impact.
#3
Created a new project from the stock MIT build, commented out the same line(loadOut), and the FPS drops to 10 while without commenting it, it's about 80. (This is all on stock full template).
Don't know what's the problem! -_-
10/24/2013 (1:52 am)
I've used the Player class! Will AIPlayer make any difference to that?Created a new project from the stock MIT build, commented out the same line(loadOut), and the FPS drops to 10 while without commenting it, it's about 80. (This is all on stock full template).
Don't know what's the problem! -_-
#4
10/24/2013 (6:05 am)
Just a thought - check your in-game settings and make sure nothing is set to "custom" -- I just found a massive (and odd) performance issue with that. Personally I alter core/scritps/client/defaults.cs to get it to default to something properly.
#5
10/24/2013 (6:32 am)
I had this problem even on the stock build, nothing changed, everything set to default, just commented out the line! And boom, the fps drops to 5-10.
#6
10/24/2013 (6:38 am)
So it has to be an environment issue - since that's the only difference between your new stock build and mine - though for the life of me I can't guess what it might be. Did you look at Steve's comment? It seems silly, but there it is.
#7
Yes, I did look at his comment. I haven't changed anything, just commented out the line!
10/24/2013 (7:00 am)
Hmm, might be! But what does loadOut have to do with the environment? I checked with the "Empty Room" map as well! Still the FPS drop!Yes, I did look at his comment. I haven't changed anything, just commented out the line!
#8
10/24/2013 (9:34 am)
So in the in-game graphic options dialog nothing is set to "custom?"
#9
10/24/2013 (12:45 pm)
Nope :()/ [Mixed Reaction]
#10
10/25/2013 (5:29 am)
Tell you what - comment everything about adding stuff to the player's stock inventory out and then run the function and see what happens.
#11
10/25/2013 (1:29 pm)
Commented out the "inventory.cs" altogether, still the same!
#12
Eg..
InvisibleWeapon_Root
InvisibleWeapon_Run
InvisibleWeapon_Crouch
Its a hack (sort of) but not a total fix.
01/02/2014 (5:32 am)
had this issue.. its when there is no weapon or ammo loaded, the way I got around this issue is to create a weapon that was invisible (a small box), mount it to the player on spawn and specify the animations for this weapon, that really is not a weapon :)Eg..
InvisibleWeapon_Root
InvisibleWeapon_Run
InvisibleWeapon_Crouch
Its a hack (sort of) but not a total fix.
#13
01/02/2014 (8:10 am)
Huh. So it has to do with a Player/AIPlayer with no weapon mounted? Nice catch - and a good place to start looking.
#14
01/02/2014 (8:17 am)
yep - its been around for a while. Never really needed to fix it, unless you are doing a non weapon based game.
#15
01/04/2014 (7:36 am)
Yeah, must be it, I tried to load the model without any weapons. Good catch! Thanks Jules!
#17
08/13/2014 (2:03 am)
A teleport toRunescape Goldhome with home in Taverly may be used. On the other hand, Taverly Teleport can be used; this needs finishing love tale desire (walkthrough hub.) RuneScape players may use increase system to fly to Taverly and land just south of the spot but have to first access the increase system. The price is one regular log. The soul vegetation may be used to reach shrub gnome stronghold to fly its increase. Adventure conflicts teleport can also be used to tap the increase system.
#18
Taverly shrub agriculture spot (guide) may be utilized three methods.
08/13/2014 (2:05 am)
Purpose of a Ski HelmetThe primary objective of a neverwinter astral precious stone ski headgear is toRS 3 Gold secure your go from cuts and effects. For example, the hard spend of a ski headgear defends your go against distinct things or shrub divisions that can rip start the skin, while the internal cushioning helps the effect of crashes and drops, helping secure the mind and head bone fragments. Customer Safety Products Percentage reports that headgear used in snow skiing and snow skiing could avoid or reduce the degree of adult go accidents from snow skiing by 44 %, and kids by 53 %.Taverly shrub agriculture spot (guide) may be utilized three methods.
Aswin Shrestha
Anyways, here are some screenshots!
Without "loading out"
"Loading out"