Jump to content
  • Home
  • Files
  • Docs
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • Mod lags my minecraft?
Currently Supported: 1.16.X (Latest) and 1.15.X (LTS)
Sign in to follow this  
Followers 1
XenoPyax

Mod lags my minecraft?

By XenoPyax, January 24 in Modder Support

  • Reply to this topic
  • Start new topic

Recommended Posts

XenoPyax    0

XenoPyax

XenoPyax    0

  • Tree Puncher
  • XenoPyax
  • Members
  • 0
  • 17 posts
Posted January 24

Hello I am noticing lags spikes when using my mod what ways are there to identify what part of my mod is causing this?

  • Quote

Share this post


Link to post
Share on other sites

Beethoven92    77

Beethoven92

Beethoven92    77

  • Dragon Slayer
  • Beethoven92
  • Members
  • 77
  • 598 posts
Posted January 24

Are you using only your mod, and in a dev environment? It would be useful to know what your mods does or adds to the game first of all

  • Quote

Check out the port of the BetterEnd fabric mod (WIP): https://www.curseforge.com/minecraft/mc-mods/betterend-forge-port

A little fun project: https://www.curseforge.com/minecraft/mc-mods/two-players-one-horse

Share this post


Link to post
Share on other sites

XenoPyax    0

XenoPyax

XenoPyax    0

  • Tree Puncher
  • XenoPyax
  • Members
  • 0
  • 17 posts
Posted January 24

Okay so it is in the dev env and in the "production" use with other mods, my mod is using RestAPIs to request data and displaying UI and data from the api requests.

  • Quote

Share this post


Link to post
Share on other sites

Beethoven92    77

Beethoven92

Beethoven92    77

  • Dragon Slayer
  • Beethoven92
  • Members
  • 77
  • 598 posts
Posted January 24

I have no knowledge of that API so someone else should give you advice on that. You should show your code, or share a link to your repository

  • Quote

Check out the port of the BetterEnd fabric mod (WIP): https://www.curseforge.com/minecraft/mc-mods/betterend-forge-port

A little fun project: https://www.curseforge.com/minecraft/mc-mods/two-players-one-horse

Share this post


Link to post
Share on other sites

XenoPyax    0

XenoPyax

XenoPyax    0

  • Tree Puncher
  • XenoPyax
  • Members
  • 0
  • 17 posts
Posted January 24

Well is there anyway I can see the lag spikes causes from ingame like F3 menu or is it just purely testing and knowing what could cause this?

  • Quote

Share this post


Link to post
Share on other sites

diesieben07    7697

diesieben07

diesieben07    7697

  • Reality Controller
  • diesieben07
  • Forum Team
  • 7697
  • 56422 posts
Posted January 24

Most likely you are running the API requests on the main thread. You can't do that.

  • Quote

Share this post


Link to post
Share on other sites

XenoPyax    0

XenoPyax

XenoPyax    0

  • Tree Puncher
  • XenoPyax
  • Members
  • 0
  • 17 posts
Posted January 24

Oh you're right

 

  • Quote

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

    • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 1
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • Luis_ST
      [1.16.5] Help with custom Backpack (slot background and mouse wheel move)

      By Luis_ST · Posted 1 minute ago

      it is an example of how the slot background should work   using a SimpleChannel?   and then send the change in the container to the server?
    • diesieben07
      When I try to run my mod after I just added Deferred Registries it crashes

      By diesieben07 · Posted 18 minutes ago

      You need to change one of them, yes.
    • ThisIsNotOriginal
      When I try to run my mod after I just added Deferred Registries it crashes

      By ThisIsNotOriginal · Posted 26 minutes ago

      so do i change the name in my ItemsList?
    • diesieben07
      [1.16.5] Help with custom Backpack (slot background and mouse wheel move)

      By diesieben07 · Posted 36 minutes ago

      I do not understand. How is the offhand slot relevant regarding the background color of your slot?   Assuming you want a keyboard key to open the GUI: Make a KeyBinding. Use ClientTickEvent to check if its pressed. If it is, send a packet to the server, which then calls NetworkHooks#openGui. You can preemptively also open it on the client to hide the latency of the two network roundtrips.
    • diesieben07
      When I try to run my mod after I just added Deferred Registries it crashes

      By diesieben07 · Posted 38 minutes ago

      That is not how you make a Git repo. At all.   This creates a BlockItem for all of your blocks. One of your blocks has the registry name "copper_ore", hence this will create a BlockItem with registry name "copper_ore". This then creates another Item with registry name "copper_ore". This is not allowed, registry names must be unique.
  • Topics

    • Luis_ST
      4
      [1.16.5] Help with custom Backpack (slot background and mouse wheel move)

      By Luis_ST
      Started Yesterday at 07:47 AM

    • ThisIsNotOriginal
      19
      When I try to run my mod after I just added Deferred Registries it crashes

      By ThisIsNotOriginal
      Started 16 hours ago

    • Extrupt
      5
      Forge won't fully download

      By Extrupt
      Started 1 hour ago

    • HDMI_Steckdose
      1
      Forge error Forge won't open

      By HDMI_Steckdose
      Started 47 minutes ago

    • Retsal
      7
      [1.16.x] Custom block as a shop

      By Retsal
      Started Yesterday at 01:04 PM

  • Who's Online (See full list)

    • ThisIsNotOriginal
    • diesieben07
    • Draco18s
    • Luis_ST
    • Rixie1213
    • AYISGTO
    • We Random
    • -MCS_Gaming-
    • Moohoy
    • PlasmaPig13
    • WooBoo
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • Mod lags my minecraft?
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community