Subject: "CF Performance" Previous topic | Next topic
Printer-friendly copy Email this topic to a friend CF Website
Top General Discussions Gameplay Topic #24457
Show all folders

ZulghinlourFri 17-Apr-09 12:17 AM
Member since 04th Mar 2003
9792 posts
Click to send email to this author Click to send private message to this author Click to view this author's profile Click to add this author to your buddy list
#24457, "CF Performance"


          

So I continue re-factoring code to make this a smooth running beast. One of the benefits I've seen already is that TICKS actually happen closer to when they should (between 15-45 seconds). Just one of the things I'm now keeping an eye on.

I've added in goals & validation around all functions in our update_handler() function (this basically is what runs the game). If any function exceeds the goals I've set all the IMPs get notified, so we can go make appropriate changes. As of now, the majority of functions have a target goal of 0.03 seconds, there are a few that do the most grunt-work that have a target goal of 0.25 seconds (like mobile_update() which does various things to every mob/character in the game every 4 seconds, and char_update() which is the function that takes care of the TICK for every mob/character).

Right now my hope is to keep the goals less than 0.25 seconds, and add new functionality as necessary to meet those goals.

I know of about a dozen or more things that don't meet these goals right now, and I'm slowly working through them.

So long, and thanks for all the fish!

  

Alert | IP Printer Friendly copy | Reply | Reply with quote

TopicCF Performance [View all] , Zulghinlour, Fri 17-Apr-09 12:17 AM
Reply FYI:, Daevryn, 24-Apr-09 01:27 PM, #10
Reply RE: FYI:, Isildur, 24-Apr-09 02:04 PM, #11
     Reply RE: FYI:, Daevryn, 24-Apr-09 02:24 PM, #12
          Reply Mmmm...Thunderdome (n/t), Zulghinlour, 24-Apr-09 02:46 PM, #13
          Reply What language would you use? /nt, Rodriguez, 24-Apr-09 05:13 PM, #14
          Reply Probably C#, Daevryn, 24-Apr-09 05:20 PM, #15
               Reply Dude, N b M, 24-Apr-09 07:58 PM, #16
                    Reply C (n/t), Zulghinlour, 24-Apr-09 08:09 PM, #17
          Reply Two bits enter, one bit leaves! nt, vargal, 25-Apr-09 05:06 AM, #18
Reply I sort of posted about this several years ago., Dallevian, 18-Apr-09 12:05 PM, #9
Reply Thanks Zulgh, definitely noticed the improvement. n/t., TheDude, 17-Apr-09 09:34 PM, #8
Reply Another thought, Dwoggurd, 17-Apr-09 04:25 AM, #4
Reply RE: Another thought, Zulghinlour, 17-Apr-09 12:43 PM, #5
     Reply Re, Dwoggurd, 17-Apr-09 06:05 PM, #7
Reply RE: CF Performance, Isildur, 17-Apr-09 12:30 AM, #1
     Reply RE: CF Performance, Zulghinlour, 17-Apr-09 12:34 AM, #2
          Reply RE: CF Performance, Asthiss, 17-Apr-09 01:53 AM, #3
          Reply RE: CF Performance, Isildur, 17-Apr-09 12:44 PM, #6
Top General Discussions Gameplay Topic #24457 Previous topic | Next topic