varying frame rate

Posted By: Nowherebrain

varying frame rate - 07/07/09 13:21

I was wondering why I get massive frame rate fluctuations at regular intervals...I'm almost sure it is due to a dual core setup, but I am not sure.....
it varies from around 200-75(windowed obviously)and it is very steady, as far as, rising and falling.
I'm running an Athlon 64X2 dual core 4200+(kinda old now that I look at it)....

setting time smooth like in the examples helps...(3 frames)
0.666
Posted By: jcl

Re: varying frame rate - 07/08/09 17:00

Regular rising and falling could mean that it's some background task on your PC. With which frequency does it occur?
Posted By: Nowherebrain

Re: varying frame rate - 07/15/09 08:01

it's a 1 second cycle up and down within a second, like clockwork.
Posted By: EvilSOB

Re: varying frame rate - 07/15/09 08:50

Sounds like the thing is either doing a full-scale virus-check of all drives,
a background de-frag(?) or maybe a virus infection.

Needs serious investingation urgently, to play on the safe side.
Try looking in the task-manager/processes list and see if you can see
a process either starting/stopping with the same time-cycle,
or one whose cpu-usage (CPU column) is jumping up and down to the same beat.
Note:: the process starting/stopping or cpu-usage may not exactly match the
HDD activity, but it will be the same timing pattern...

Best of luck.
Posted By: MrGuest

Re: varying frame rate - 07/15/09 12:37

if i use a simple code
Code:
//press F11 to run
#include <acknex.h>
#include <default.c>

var def_dfps;
var def_dfps_lo;
var def_dfps_hi;
	var var_dfps_lo, var_dfps_hi;


PANEL* pnl_fps = {
//	digits(10, 150, "time_frame %5.2f", *, 16, time_frame);
//	digits(10, 160, "fps        %5.0f", *, 16, def_dfps);
	digits(10, 170, "fps lo     %5.0f", *, 16, def_dfps_lo);
	digits(10, 180, "fps hi     %5.0f", *, 16, def_dfps_hi);
	flags = SHOW;
}

void hi_lo(){
	
	int i;
	while(1){
		var_dfps_lo = minv(var_dfps_lo, def_dfps);
		var_dfps_hi = maxv(var_dfps_hi, def_dfps);
		wait(1);
	}
}

void main(){
	hi_lo();
	while(1){
		def_dfps_lo = var_dfps_lo;
		def_dfps_hi = var_dfps_hi;
		var_dfps_lo = 1000;
		var_dfps_hi = 0;
		wait(-1);
	}
}

for determining peak and lo of fps rate per second

i get from 350 - 500, though no additional programs are running, but not necessarily at regular intervals

sys: Intel CPU 2140 @ 1.60Ghz, 4GB RAM, Window Vista SP1, NVIDIA GeForce 7300LE

Hope this helps
Posted By: VeT

Re: varying frame rate - 07/15/09 13:02

Its very important, that function may be called hi_lo(), but not lo_hi() grin
I think, only russian could understand this smile
Posted By: Nowherebrain

Re: varying frame rate - 07/15/09 21:37

lol,....
I checked all that and my sys is a fairly new install, nothing in the background..like jrs or defrag..\I am running an AMD athlon 64x2, nvidia 8400 gs(good sale) 2Gb ram.
© 2024 lite-C Forums