View Issue Details

IDProjectCategoryView StatusLast Update
0001058FSSCPgameplaypublic2012-01-09 18:06
ReporterBackslash Assigned Totaylor  
PrioritynormalSeveritytweakReproducibilityalways
Status resolvedResolutionfixed 
Summary0001058: FPS doesn't work at slower-than-1x time compression
DescriptionIt's a minor thing, but the optional FPS on the HUD suddenly turns to 0.0 when time compression is slower than normal (whether cheating or through SEXP).
Additional InformationThe code line in Freespace.cpp (4050 or so) is
sprintf( text, NOX("FPS: %.1f"), Framerate * (Game_time_compression>>16));
I'd fix it myself but I'm not so familiar with the bitwise operator and don't know what to do here.

I'm guessing it's an easy fix. If it ends up taking you more than 15 minutes, it's probably not worth the bother.
TagsNo tags attached.

Activities

taylor

2006-09-22 09:58

administrator   ~0006669

Yep, easy fix. Actually it just needs to be using flRealframetime there, so that it doesn't have to even care about time compression.

I'll commit the change later today.

taylor

2006-09-24 12:22

administrator   ~0006702

Fixered.

Related Changesets

fs2open: fs2_open_3_6_9 r3585

2006-09-24 09:21

taylor


Ported: N/A

Details Diff
small optimizations and code cleanup
use the real frametime for FPS counter stuff, no reason to deal with time compression there (Mantis bug 0001058)
Affected Issues
0001058
mod - /branches/fs2_open_3_6_9/fs2_open/code/freespace2/freespace.cpp Diff File

fs2open: trunk r3588

2006-09-24 09:30

taylor


Ported: N/A

Details Diff
small optimizations and code cleanup
use the real frametime for FPS counter stuff, no reason to deal with time compression there (Mantis bug 0001058)
Affected Issues
0001058
mod - /trunk/fs2_open/code/freespace2/freespace.cpp Diff File

Issue History

Date Modified Username Field Change
2006-09-22 09:10 Backslash New Issue
2006-09-22 09:58 taylor Note Added: 0006669
2006-09-22 09:58 taylor Status new => assigned
2006-09-22 09:58 taylor Assigned To => taylor
2006-09-24 12:22 taylor Status assigned => resolved
2006-09-24 12:22 taylor Resolution open => fixed
2006-09-24 12:22 taylor Note Added: 0006702
2012-01-05 22:55 taylor Changeset attached => Import 2012-01-05 17:52:05 fs2_open_3_6_9 r3585
2012-01-05 22:55 taylor Changeset attached => Import 2012-01-05 17:52:05 trunk r3588
2012-01-09 18:06 taylor Changeset attached => fs2open_websvn fs2_open_3_6_9 r3585
2012-01-09 18:06 taylor Changeset attached => fs2open_websvn trunk r3588