Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

My Maps and battles are lagging!!

Everytime I enter a map, or finish a battle, it laggs for like 3 seconds before it continues, how do I fix this? I already have an atni-lag script, do i need a different one?
 
You're not giving us a lot to work with...

I'm not particularly good with the technical stuff, and for all I know someone will come along with the answer to your problem in the following 9 seconds, but if nobody does, then...

I think that for now you should narrow down the possible causes. Start a new project, if it still lags with the new project, chances are your computer is causing it, if not, a script in your current game might be the problem.
 
Strangly i had issues with lag even with the anti lag script. it wasnt until after i added the 8 directional pixel movement script that nearly all the lag went away. if all else fails give that a shot.
 
I agree with Unka Josh.  Parallel Processes are an excellent way to add a lot of stuff to your game but too much is too much.  Make sure you dont have too many on the same map.
 
If you hit F1 (rclick, properties) during the game (not a play test) you can disable all of the gamepad processing. Maybe it's just my PC, but I saw a performance boost right away. Can someone else verify this?
 
u can also use this
(It is made by blue fire group)
#==============================================================================
# Módulo AntiLag
#==============================================================================
    module AntiLag
      SPC = Win32API.new("kernel32", "SetPriorityClass", "pi", "i")
      @@high_priority = false
      def self.high_priority ; @@high_priority; end
      def self.high_priority?; @@high_priority; end
      def self.high_priority=(valor)
        return if @@high_priority == valor
        @@high_priority = valor
        if @@high_priority
          SPC.call(-1, 0x80)
          return
        end
        SPC.call(-1, 0x20)
      end
    end
    AntiLag.high_priority = true
 
I believe he already has an anti-lag script either that one or one similar.  I think we can all agree its the scripts lagging him up BUT if an anti-lag doesnt help then he needs another solution...
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top