Frame Drop When Removing Weapons
by Djekko Spurgin · in Torque 3D Beginner · 03/24/2016 (4:04 am) · 4 replies
For the game I am creating I don't want any weapons. I have done a fair bit of trail and error and looking on here always come with the same outcome.
The first solution is to Remove the Weapons folder and the Weapons.cs from the datablock folder
The second is to comment or remove the [b]GameCore::loadOut[b/] from scripts/server/gameCore.cs
Both of these ways have the same outcome. The gun is gone and the first person arms are gone. But there is a dramatic frame drop. If i have weapons in the game then it runs at around 600-800 FPS (sounds silly but its what MSI afterburner says) but when I have no weapons there is a massive drop to around 20-25 fps.
Is there a way I can remove all the Weapons but not sacrifice image performance.
The first solution is to Remove the Weapons folder and the Weapons.cs from the datablock folder
The second is to comment or remove the [b]GameCore::loadOut[b/] from scripts/server/gameCore.cs
Both of these ways have the same outcome. The gun is gone and the first person arms are gone. But there is a dramatic frame drop. If i have weapons in the game then it runs at around 600-800 FPS (sounds silly but its what MSI afterburner says) but when I have no weapons there is a massive drop to around 20-25 fps.
Is there a way I can remove all the Weapons but not sacrifice image performance.
About the author
Computer Game Development Student Lead Programmer Perplexed Studios
#2
03/26/2016 (7:37 am)
Someone else noticed this about two (I think) years ago - they wanted to start the player with no weapon equipped and the framerate was terrible until the player actually equipped a weapon. Have to search the forums, I don't recall the solution....
#3
The problem arises from no sound being played prior to loading into the mission. Something or other about the SFX system - basically you just want to ensure some sound is played before loading the mission.
I started to just be sure I have a sound on the main menu buttons( or a looping main menu theme). This way you must init the SFX prior to mission load.
For reference: This old post
03/26/2016 (9:24 am)
You remember correctly Richard =)The problem arises from no sound being played prior to loading into the mission. Something or other about the SFX system - basically you just want to ensure some sound is played before loading the mission.
I started to just be sure I have a sound on the main menu buttons( or a looping main menu theme). This way you must init the SFX prior to mission load.
For reference: This old post
#4
03/28/2016 (3:40 am)
Thanks it was the sound that was the problem. It's a bit strange that now having sound effects the frame rate. Thanks again
Torque Owner Nathan Martin
TRON 2001 Network