Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Kobrar44 on August 31, 2011, 02:30:26 pm

Title: Few problems
Post by: Kobrar44 on August 31, 2011, 02:30:26 pm
I am experiencing few problems with FSO. First is huge slowdown on newest nightly. r7536 runs fine, 7604 does not. Haven't tried the rest.
Second looks like this and I don't know if its hardware or software or just system overload since weapon generates 900 projectiles all the time:
http://www.youtube.com/watch?v=8NAJ5hW2buE (http://www.youtube.com/watch?v=8NAJ5hW2buE)

Debug only says this:
ASSERTION: "(geometry_map[index].laser == false)" at grbatch.cpp:662
 Particle effect exp05.eff[4] used as laser glow or laser bitmap
And then crashes.

I don't think this one causes colourful explosions. If I change the effect the problem disappears. Well. I am just wondering if this is system overload or memory issue.
Also, why can't explosion be a laser bitmap?
Faulty mod included.

[attachment deleted by ninja]
Title: Re: Few problems
Post by: Iss Mneur on August 31, 2011, 02:48:38 pm
A log please?

A laser bitmap is gray scale (so it can be tinted according to the tbl entry), whereas the explosions expect a full colour image.

Also, there is a hard object limit of 2000 objects and 700 weapon objects at any one time.  This means that you are not actually firing at the rate that you think you are.  See Engine Limitations (http://www.hard-light.net/wiki/index.php/Engine_limitations) on the wiki.
Title: Re: Few problems
Post by: Kobrar44 on September 01, 2011, 05:40:16 am
Here is debug, but it crashes before colourful explosions show up. Duno why, but slowdown problem on 7604 disappeared.

[attachment deleted by ninja]
Title: Re: Few problems
Post by: Aardwolf on September 01, 2011, 10:29:30 pm
I mantis'd this a while ago.

Colored flak or somesuch. Looking for the specific issue number now.

Edit: Found it, #1764 (http://scp.indiegames.us/mantis/view.php?id=1764)



Probably should not have been closed.
Title: Re: Few problems
Post by: Aardwolf on September 20, 2011, 02:11:52 pm
:bump:

I re-opened that mantis issue. Kobrar44, does Issue #1764 (http://scp.indiegames.us/mantis/view.php?id=1764) sound similar to what you were experiencing?
Title: Re: Few problems
Post by: The E on September 20, 2011, 02:16:57 pm
There is still no change required. This bug only exists because a bitmap exists both as an explosion and a laser bitmap, this confuses the batch renderer.

There's a simple solution, namely to copy and rename the existing effect.
Title: Re: Few problems
Post by: Aardwolf on September 20, 2011, 02:25:17 pm
That's a stupid solution.

It's unintuitive and shouldn't be necessary.
Title: Re: Few problems
Post by: The E on September 20, 2011, 02:25:57 pm
Then rewrite the batch renderer.

See, there is no change required, because this workaround (stupid as it may be) exists and works. Sure, a change would be nice, but we (as the SCP team) have more pressing matters to attend to.
Title: Re: Few problems
Post by: Aardwolf on September 20, 2011, 02:34:54 pm
le sigh

/me updates le SVN checkout and looks at what would be involved
Title: Re: Few problems
Post by: jr2 on September 20, 2011, 02:59:27 pm
Atta boy, Aard.  If you want something in a volunteer-driven project done... yep, that's right, volunteer and do it yerself!  :D  :nod:

Hopefully you can pull it off.  Thanks in advance if you can.
Title: Re: Few problems
Post by: Aardwolf on September 20, 2011, 09:11:47 pm
Eh... I didn't actually volunteer to do it, I just took a bit of a look-see at the relevant code (it's code/graphics/grbatch.h and code/graphics/grbatch.cpp, FYI)... From a cursory examination I reckon it wouldn't be too hard to make the necessary changes, but don't get your hopes up.
Title: Re: Few problems
Post by: jr2 on September 22, 2011, 08:05:30 pm
SCP lives off of hope.  Where have you been?  =P
Title: Re: Few problems
Post by: Dark RevenantX on September 23, 2011, 01:12:58 am
I rather liked the effect.  Ravethrower has a nice ring to it.
Title: Re: Few problems
Post by: Nuke on September 23, 2011, 06:03:26 am
at least have an error message to tell the modder that they are stupid. :P
Title: Re: Few problems
Post by: Aardwolf on September 23, 2011, 09:47:36 pm
It already has an assert!

It's just that modders are like "wtf does this mean?", or "that's a stupid limitation"