Hard Light Productions Forums
Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Goober5000 on December 09, 2002, 03:42:39 pm
-
I just loaded up a mission with the newest SCP code, and I noticed that the framerate is incredibly slow when facing capital ships. I turned and faced an Arcadia, and the framerate dropped to around 10 per second (it went back to normal, almost, when I faced away). Far too noticeable, and there weren't any enemies in the mission yet!
Bobboau, might this be because of your decal code? Something's chewing up time somewhere, and the decals would seem to be the likely culprit.
-
yes it is.
decals render very slow and are apllied inefecantly with beams, I was going to make decals render only on highest detail levels and disapear after a while, but I havn't done it yet, if you would like to take a crack at giveing them better rendering code go right ahead, I'm not sure why they are so slow
-
If we can fix this slowness (and get some kind of OGL selector/launcher), I'd say there is enough for another release :)
-
In the meantime, maybe we could leave the decal code out of builds? I'm seriously looking forward to having them in, but if it is killing framerates like this it would make builds almost unplayable, and given the other functions that are being added in that people want, it'd be good to be able to have them without the framerate problem.
-
Someone put decals into the engine? Can I see some piccies?
EDIT: N/M, saw them in the thread. Would like some more, though ;)
BTW, on that note, I think I know how to make it look like their was a hole blasted through the ship. Make a decal that's totally transparant. That would look neatio.
-
Decals are cool. If someone makes some brightly colored splotches, we'd be able to have a glorious paintball fight. :)
Transparency decals sound very cool. Will they work that way, Bobboau?
Let's not release the next build until we have the distance-from-subsystem sexp (yeah, I know, that makes me the holdup :p). This will allow ships to have the full-fledged ship-depart-into-hangar addition in the next official build.
-
Originally posted by Unknown Target
Someone put decals into the engine? Can I see some piccies?
EDIT: N/M, saw them in the thread. Would like some more, though ;)
BTW, on that note, I think I know how to make it look like their was a hole blasted through the ship. Make a decal that's totally transparant. That would look neatio.
Then we will have weapon fire seeming to hit "nothing"
dont think transparent decals would be looking good once yuo see sparks coming out of nothing, not to mention clipping errors previos hidden, will show.
-
Maybe phreak can take a look at the framerate :)
-
I'm thinking this should have a comand line flag for the time beeing, though, if you don't have any weapons with decals enabled it shouldn't be called too oftene,
would a more experienced graphics programer look at the rendering code and tell me if I'm doing it horendusly wrong, wouldn't suprize me, before starting work on this I had literaly no C programing experience
-
Originally posted by Bobboau
before starting work on this I had literaly no C programing experience
Impressive. Most impressive.
-
Make it optional then, Bob, and committ it.
We'll see who can give us a hand. Make sure it's entered into bugzilla so we don;t forget to come back to it.