User Tag List

Results 1 to 6 of 6

Thread: FPS keeps dropping when I replace colors?

  1. #1
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCSWF Export Module
    N64Mario's Avatar
    Join Date
    Nov 2008
    Location
    USA
    Posts
    1,308
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)

    FPS keeps dropping when I replace colors?

    Can anyone tell me why my FPS keeps dropping when I replace the colors this way? And/or if there is a way to fix the FPS from dropping?

    http://gcnmario.free.fr/palette.mfa
    Pressing the fire 2 button gives him the charged shot color swapper thing.

    I'm trying to make a color replace code that fixes my character, so his colors don't get mixed up and eventually gain 1 solid color for all values.


  2. #2
    Clicker Multimedia Fusion 2
    SEELE's Avatar
    Join Date
    Jul 2007
    Location
    Terra australis incognito
    Posts
    1,916
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: FPS keeps dropping when I replace colors?

    Replacing a color does so, for every frame of every direction of all animations... and so is obviously a slow command.

    Using HWA it is possible to do similar things (however much faster).

  3. #3
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCSWF Export Module
    N64Mario's Avatar
    Join Date
    Nov 2008
    Location
    USA
    Posts
    1,308
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)

    Re: FPS keeps dropping when I replace colors?

    What is HWA anyway? I read that it is still beta, and there are some things that don't work.

    Anyway, I think I can work around this by exaggerating a few palette RGB values. Although this won't make the characters palette accurate to the original games.

    I think MMF2's color replace code has an obscure bug/glitch that once a color is replaced, it is replaced permanently. Therefore if a same color gets rotated around, it will eventually lead to a solid color. I wonder if they will ever try to fix this.

  4. #4
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: FPS keeps dropping when I replace colors?

    It's intentionally like that.

    If you want something more flexible, you could try a pixel shader doing the replacing.

  5. #5
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCSWF Export Module
    N64Mario's Avatar
    Join Date
    Nov 2008
    Location
    USA
    Posts
    1,308
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)

    Re: FPS keeps dropping when I replace colors?

    So why can't there be a code that changes a color of the current 256 palette set given? That way, if a sprite is using a specific index color of the palette provided, it would only affect that area, and not all color areas. In other words, the current palette at the start could be overwritten with another user palette provided.

  6. #6
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: FPS keeps dropping when I replace colors?

    It's a good idea, but very few people use 256-colour mode any more, because it doesn't work well with multiple applications running at once.

Similar Threads

  1. Issue: shader won't replace darker colors?
    By Solgryn in forum Shader Development
    Replies: 6
    Last Post: 16th January 2015, 07:53 PM
  2. Replace colors not working
    By MattKapa in forum iOS Export Module Version 2.0
    Replies: 4
    Last Post: 27th April 2012, 01:15 AM
  3. Problem: Replace Colors
    By Hazzow in forum iOS Export Module Version 2.0
    Replies: 3
    Last Post: 1st December 2011, 08:17 AM
  4. Replace a range of colors?
    By pinacoladaxb in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 12th January 2008, 01:07 AM

Posting Permissions

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