Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

Hello, I've been working on a mod, that requires huge amounts of particles. The fps seems ok, but at one moment I noticed, that, at a certain point, the spawning of new particles seems to instantly erase the oldest ones. This provokes the question - Is there some sort of hardcoded limit of particles that can exist at any one time? Any help will be much appreciated. Thank you in advance

That's a lot of particles xD. Is that per mod?

DRAGONMANG: "I'm Dragonmang, m8. Here me roar."

HERO: "Oh no... not. Dragonmang."

DRAGONMANG: "Roar, m8."

HERO: "Ahhh......"

And so the brave knight and Dragonmang fought on the mountaintop for many moons....

  • Author

For 1.7.10/1.8.9 about 4000 if I recall correctly.

Thanks for the info! But then that leads to another question - is there any accepted way to increase it, or will that require some  tinkering?

That's a lot of particles xD. Is that per mod?

 

No.  Its global and modified by the game settings.  Low Particles reduces the count (though I don't know by how much).

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Looking at the code, the maximum number of particles in 1.8.9 is always 4000 per combination of particle layer (0-3) and alpha (opaque or transparent). This is determined in

EffectRenderer#addEffect

. Changing it would require ASM and may or may not break things.

 

The particles setting is only used by

RenderGlobal#spawnEntityFX

, but some particles are spawned using

EffectRenderer#addEffect

directly and won't be affected by the setting. The setting doesn't affect the particle limit, it just reduces the chance for particles to spawn (Decreased) or completely stops particles from spawning (Minimal).

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

As already said, in 1.7.10 and 1.8.9, maximum is 4000.

In 1.9, it is 16,384 (but forge is not there yet).

 

You can bypass this limit only by writing your own particles system (or ASMing the limit, but it is not a good idea).

If you're going to write it, 2 things that will help is

WorldRenderLastEvent

and weather 2 mod, which uses custom particles system.

The particles setting is only used by
RenderGlobal#spawnEntityFX

, but some particles are spawned using

EffectRenderer#addEffect

directly and won't be affected by the setting. The setting doesn't affect the particle limit, it just reduces the chance for particles to spawn (Decreased) or completely stops particles from spawning (Minimal).

 

Oooh, alright. :)

I knew that the setting lowered the chance of the particle spawning, but I thought it lowered the cap, too.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.