Search the Community
Showing results for tags 'optimization'.
Found 3 results
Unity Coder Unity Optimization Tips (multiple links) Intel Developer Zone How To Plan Optimizations with Unity* Unity Docs Optimizing Graphics Performance Optimizing Physics Performance Performance Optimization Code Project Unity and C# : Performance Optimization tips Paladin Studios 4 Ways To Increase Performance of your Unity Game Techgalaxy 5 Basic Ways to Improve Performance in C# Jacksondunstan GetComponent by type versus string test & benchmarks Databases MYSQL 10 Tips for Optimizing MySQL Queries Other Java Performance comparison of different ways to iterate over HashMap I'd you'd like to add content, please, notify me first.
I am finishing up what I would consider the core gameplay elements of a game I've been working on, and am debating making another pass through the code to optimize before it becomes too daunting. On that note I a/some questions about unity and optimization. 1. Calling public variables from other scripts: for example my crosshair script calls for a weaponsaccuracy variable from my weaponinfo script to control the spread of the crosshairs. this is done in the update() function so it's happening all the time. My question is how much of a performance difference there is between calling a public variable cross-script over using a local variable. I had debated putting a conditional statement in update() and only calling in the weaponaccuracy on weapon change, converting it to a local variable for use on every Update() call, but this would only be worthwhile if there is a significant performance different between local variable usage and public cross-script variable usage. *** I realize that small scale this will not make a difference, this is both for my own education / best practices and in consideration of possible futures for this project being a multiplayer 3rd person shooter where there would be much more going. I'm at work again right now, but after I get back and have a chance to look over some more code I'm sure I'll have a couple other little questions about optimization, Thanks ahead of time for any input.
jordanblythe104 posted a question in Need help?I'm having a problem when I die in my game where my framerate drops from 60+ frames per second down to about 6 to 8 frames per second. When the player's health drops to 0, I activate a ragdoll with a camera attached to the head, I know this isn't the problem as I've been using this method in the game for months. The performance profiler says it's overhead and I don't really understand what that means, does anybody know what's happening? I've included some images of the functions that are called when the player dies and the profiler Image of the performance profiler: