|
|
| Let's have a (virtual) fireworks competition! |
|
Dustin Dettmer
Member #3,935
October 2003
|
The problem is likely a memory error elsewhere in your code. A few tips... You should use a deque as it is more optimized for removing and inserting on the ends. Use .at() instead of [] notation. This will throw exceptions which are good for debugging. In release mode you can use [] again resulting in a small optimization. Here is a way to write two of your functions a bit more clearly / cleanly.
|
|
BAF
Member #2,981
December 2002
|
bamccaig said: I generally avoid binaries. Sounds like you've got a case of chronic gentooitis. |
|
Jonatan Hedborg
Member #4,886
July 2004
|
My vote goes for ixilom! Very pretty and ambitious. I managed to track down that nasty little memory bug I had. I was holding on to a pointer to an object in a vector while I was adding stuff to the vector, so that when it got resized, the pointer was left dangling... silly. Here is the latest (and last, this is getting silly now Plenty of screenshots attached. EDIT: I wonder if it's more effecient to store the particles as pointers in the vector, and take the cache hits or just do as I do now and take the heavier moving of memory instead. ------- |
|
KnightWhoSaysNi
Member #7,339
June 2006
|
I couldn't get any pretty firework particle explosions but I was able to make other neat particle effects at least. |
|
ixilom
Member #7,167
April 2006
|
I put my vote on Jonatan ___________________________________________ |
|
Vanneto
Member #8,643
May 2007
|
I added rockets, it was quick and dirty actually. I'm not proud of the code, just the results, I think it looks quite pretty. I'm looking into optimizing it and making it even more optically pleasing. Any suggestions on what do add? I attached the source too, if anyone will look at it, ignore programme.cpp/.hpp. Is there any way to optimize the loops in explosion.cpp and main.cpp? -- |
|
Jonatan Hedborg
Member #4,886
July 2004
|
Resolution fail. Cant even see the top of the window (and I'm at 1280*1024, which afaik, is not considered tiny). ------- |
|
ixilom
Member #7,167
April 2006
|
Votes ___________________________________________ |
|
Jesse Lenney
Member #8,356
February 2007
|
1 for Ixilom --- |
|
Vanneto
Member #8,643
May 2007
|
OK fixed the resolution to 1024x768. -- |
|
|
|