Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (495)
Games in Android Showcase (114)
games submitted by our members
Games in WIP (563)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Odd Slick2D ParticleSystem problem (Solved)  (Read 1666 times)
0 Members and 1 Guest are viewing this topic.
Offline Dreamcatchermatt

Junior Member





« Posted 2010-07-11 20:31:39 »

Hi All,

I'm using Slick2D for my game, and i'm haveing a problem where my ParticleSystems seem to be going in fast-forward.

This seems to happen to some, but not others, and general happens when there are a lot of ParticleEffects instanced.

for example, if i have 1 or 5 effects going, its ok, if i have more than that, suddenly fast-forward.

I'm trying to track down any loops where i may be calling the render or update more than once, but all of my effects use the instances of the same component class, so i dont think this is the case or it would happen to ALL my effects, rather than just some.

Anyway, this is really foxing me, has anyone come across this before?

chears all,
Matt
Offline appel

JGO Wizard


Medals: 51
Projects: 4


I always win!


« Reply #1 - Posted 2010-07-15 17:27:50 »

Best to ask on the slick forums.

But it sounds to me like you're updating the same particlesystem in multiple entities.

Check out the 4K competition @ www.java4k.com
Check out GAMADU (my own site) @ http://gamadu.com/
Offline Dreamcatchermatt

Junior Member





« Reply #2 - Posted 2010-07-16 06:02:58 »

Ahh, yeh, I forgot to edit this as solved.

What i was doing was using a list to queue up particle systems to add and remove from the game world to avoid concurrent modification in my update loop. What is wasn't doing was clearing the queue each time I added its contents to the game world...

I litraly tore my entire game apart trying to find the hidden extra loops, and felt realy stupid when I realised what I had done.

Chears for your reply though
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Nate

JGO Kernel


Medals: 147
Projects: 4
Exp: 14 years


Esoteric Software


« Reply #3 - Posted 2010-07-17 20:18:19 »

*cheers

Offline Dreamcatchermatt

Junior Member





« Reply #4 - Posted 2010-07-20 18:10:21 »

lol, yeah, its one of those words that I always spell that way and cant get out of the habit.
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Dwinin (29 views)
2014-09-12 09:08:26

Norakomi (57 views)
2014-09-10 13:57:51

TehJavaDev (76 views)
2014-09-10 06:39:09

Tekkerue (38 views)
2014-09-09 02:24:56

mitcheeb (58 views)
2014-09-08 06:06:29

BurntPizza (45 views)
2014-09-07 01:13:42

Longarmx (30 views)
2014-09-07 01:12:14

Longarmx (35 views)
2014-09-07 01:11:22

Longarmx (36 views)
2014-09-07 01:10:19

mitcheeb (40 views)
2014-09-04 23:08:59
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!