User Tag List

Results 1 to 8 of 8

Thread: MMF2 Profiling

  1. #1
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleUnicode Add-on

    Join Date
    Jun 2006
    Location
    Australia
    Posts
    988
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Lightbulb MMF2 Profiling

    Is there any intelligent way of profiling a MMF2 app to see where possible slowdowns might be? I'm interested to see where my game spends most of its time running.

    Perhaps through an extension even?

  2. #2
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,730
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Counters in groups and loops.

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  3. #3
    Clicker Multimedia Fusion 2Android Export ModuleiOS Export Module
    loglady's Avatar
    Join Date
    Jul 2011
    Location
    Twin Peaks
    Posts
    192
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    nivram, could you elaborate a bit more?

  4. #4
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCSWF Export Module
    Alonso's Avatar
    Join Date
    Jul 2006
    Posts
    681
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think Phi was developing some kind of debugging extension, but I'm not sure if it's made for benchmarking purposes. Maybe he'd be willing to implement such features?

  5. #5
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,730
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by loglady View Post
    nivram, could you elaborate a bit more?
    Counters in groups:

    Always add 1 to counter.

    Whichever group has the highest number the program spends the most time.

    It seems simple. Am I missing what profiling means? A coder wants where the program spends most of the time? Why is a extension needed?

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module
    rubes's Avatar
    Join Date
    May 2011
    Posts
    364
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That's a slick trick Marv. I am going to put this to work on the app I'm working over the weekend.

  7. #7
    Clicker Fusion 2.5 DeveloperInstall Creator Pro

    Join Date
    Sep 2006
    Posts
    517
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm more in favor of time. So before I was using GetTickCount with Dll Object. Now I think using MMF's timer expression should be accurate enough. Using time allows checking where are the real parts to optimize.

    In addition when developing in Object-oriented way, method calls are asynchronous most of the time (when implemented with group, that's almost how MMF works natively and it works well). Consequently several methods may call the same method and reorganizing groups may sometimes reduce group's execution. In this last case you will need more than just a counter but a trace of execution.

  8. #8
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleUnicode Add-on

    Join Date
    Jun 2006
    Location
    Australia
    Posts
    988
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That is a very good idea Marv. My game, Dungeon Dashers, however has 3400 lines of code in the main frame spread across countless groups. It would be hard for me to manually add in counters.

    Really I want to know which parts of my code may be causing slowdown. And I do know a lot of tricks, but when my project is so large it gets unwieldy.

    Does anyone know if Phi was still doing his debug extension?

Similar Threads

  1. 2 errors while profiling my app
    By Sphax in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 5th June 2013, 12:59 PM
  2. Another XNA Control + Profiling Example
    By Danny in forum XNA Specific Example Files
    Replies: 6
    Last Post: 11th February 2013, 09:10 PM
  3. Replies: 3
    Last Post: 7th January 2013, 01:35 PM
  4. SOLVED: MMf2 Standard to MMf2 Developer Error
    By iamjot in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 21st January 2011, 07:03 PM
  5. passage d'appli MMF2 anglais à MMF2 français
    By mig3 in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 15th February 2008, 05:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •