View Full Version : FPS / Frame time / ... And in code ??

02-16-2003, 02:39 PM
Does someone remember what is the console command for framerate ???


And does someone know where that stuff is in the code ??

And if someone does and/or understands this stuff then:

Would it be good idea to "try" to scale sabers trail stuff
based on framerate ???

Because framerate clearly affects to that saber trail effect

Usually when i test my saber (alone in the game) that
trail is small, clean, all ways pretty nice but then when
there is more going on and frame rate drops that trail
will grow (and with normal JK2 code its shape will
also change to pentagonal...)

02-16-2003, 02:46 PM
if i recall, the console command for fps is

cg_drawfps 1

it is set to 0 by default.

As far as changing it through code, I haven't heard of the problem you are describing. I have even played with "cl_avidemo 1" to record saber battles (takes a screenshot every second) and haven't seen such a problem ...

02-17-2003, 02:30 AM

(when framerate drops the shape of the trail will stretch
to those arrows directions... and the overall size (lenght)
of the trail will get biger...)

You haven't seen anything like that ??


I don't have that shape problem anymore with my new
saber code but obviously the size of the entire trail still
gets biger when framerate drops because that is how
it is rendered...

(game stores the position of the saber after every frame
and then at next frame it uses that info to draw the trail
so when framerate drops the saber moves longer
distance during one frame... so it get biger...)

02-17-2003, 11:15 AM
Ok i think i got it working now... (looks fine when
framerate is somewhere between 15 and 40)


HOW high/low the framerate usually is when
you play ??

02-18-2003, 11:08 AM
Usually FPS is around 30-50 when I'm moving around a lot, 60-90 when I'm at a stand still. I'm playing with Tchouky's sabers lately, so that might be why we have different results.