Reply to topic  [ 2 posts ] 
Boom! New algorithm! 
Author Message
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 7:35 pm
Posts: 6580
Location: Getting there
Reply with quote
Woop!

Well tonight was productive! I wrote a new drawing algorithm for my Game of Life app!

http://itunes.apple.com/gb/app/game-of- ... 39315?mt=8

The bottle-neck in the current version is how fast (or should I say slow) the drawing algorithm is when the screen is almost full and very random. I knew hat to do to fix it about 3 months ago but I didn't know how to implement what I knew to do. Well, tonight I figured it out.

It takes the performance (of a full and random screen) from about 2-3 FPS to about 60 FPS :D

Very pleased. Now there is one more feature to add before my next release!

_________________
Oliver Foggin - iPhone Dev

JJW009 wrote:
The count will go up until they stop counting. That's the way counting works.


Doodle Sub!
Game Of Life

Image Image


Tue Sep 18, 2012 10:17 pm
Profile WWW
Spends far too much time on here
User avatar

Joined: Thu Apr 23, 2009 9:40 pm
Posts: 4876
Location: Newcastle
Reply with quote
As far as algorithms go I found a very elegant (although slow) system for Fibonacci calculations in C#

http://paste2.org/p/2236575

Code:
public IEnumerable<int> Fibs {
   get {
      yield return 1;
      yield return 1;

      foreach (var n in Fibs.Zip (Fibs.Skip (1), (x, y) => x + y))
         yield return n;
   }
}

_________________
Twitter
Charlie Brooker:
Macs are glorified Fisher-Price activity centres for adults; computers for scaredy cats too nervous to learn how proper computers work; computers for people who earnestly believe in feng shui.


Fri Sep 21, 2012 12:58 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.