Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 134002

Performance is a subset of Optimization: performance is the goal when you want the execution time of your program or routine to be optimal.

4 votes
2 answers
86 views

Checking where/if another creature lies in a creature's field of view

Note: this is a more specific form of this I am working on a simulation of some virtual creatures. They all have vision that lets them see other creatures. To do this, I calculate the difference betw …
Luke B's user avatar
  • 277
4 votes
1 answer
576 views

Getting angle between all points in array

I have got some code that calculates the angle between all of the points in an array. It works, but it is quite slow. This is because it has complexity O(n^2). It has to loop through the array and app …
Luke B's user avatar
  • 277
3 votes
2 answers
106 views

Changing the width of a centered progress bar

225, 255); } <div id="boost-bar"> <div id="available-boost">Boost</div> </div> (I see the slight glitch where the text moves when very little boost remains, but I can solve that later. ) The performance … How can I improve the performance of the above code? Some considerations: I am already using a canvas for some other things, would it be faster to just put the bar on that? …
Luke B's user avatar
  • 277