PDA

View Full Version : Flickering Textures and Slow.



Memphis
17-08-2008, 02:28 PM
Hi there, im away from home atm, so i'm not using my development comp, im stuck with this c...

Windows XP Home, DirectX9.0c, Delphi 7.0.
512MB DDR 400MHZ
AMD Sempron 2700+ AM2
NVidia Geforce 7300 LE PCI-E 256MB


ok my problem is difficult to explain and therfore difficult to search for, i have uploaded an example of my new engine, to help explain the problem, because i am using this computer, i do not know if it is problem with this comp or my code.... anyways problem is 1.. it seems exceptionally slow for such small geometry... zoomed out, i get around 24-30fps, and 2nd problem, most important is, texture, geometry that is furthur away, when moving, the colours seem to flicker kind of thing, it doesnt seem to look smooth.... any ideas where i could be going wrong and i can try paste my code of what is needed etc... thanks in advance


btw the app is at HERE (http://www.meka-meka.com/meka/Test.rar)

JSoftware
17-08-2008, 02:53 PM
Are you using software vertex processing? What texture filtering are you using? Looks like you are using nearest, which could explain the flickering. Try using linear or trilinear

I get at the lowest 220 fps on a 8600GT

Brainer
17-08-2008, 03:06 PM
Works fine for me, I get around 1250 FPS.

User137
17-08-2008, 10:27 PM
Getting 600-700 fps on 8600GT, Athlon 4200 X2.

Things missing: bi-linear filtering and mipmapping.

Also the ground texture is quite big. The smaller the texture the faster it can render. (On the otherhand, switching often to several small textures can be even slower, depends on case entirely)

Andreaz
18-08-2008, 05:38 AM
Between 1800 and 2500fps on my 8800GT, i wouldn't say slow.

However are you doing something you'r graphics card doesnt support? Thus forcing the rendering to take place in software?

Traveler
18-08-2008, 01:21 PM
Maybe it's your drivers?

My fps results are similar as Andreaz'

Memphis
18-08-2008, 01:53 PM
hi great, thanks all for your responses

@JSoftware, i use hardware vertex processing, any fingers to point me in right direction to search for setting linear/trilinear filters? thanks

Brainer: what gfx card and cpu do you have? thanks

User137, would you say 600-700 fps is slow for 8600GT and X2 CPU? i would personally, just wondering what is your opinion, thanks

Andreaz, thanks i dont think i am, very simple engine atm, just loads the model, atm i even use just standard direct x method for loading models, i will implement my own models in the future, but i just first need it working quick, thanks.

and last but not least @Traveler, that is a good idea, maybe i will update the drivers today and see what happens.



--------------------------
EDIT.


hi done some tests, ok its not the drivers, i also had a few games installed which run great, so done a bit research on the filtering, and i've added the following



ResMan.DX_Device.SetSamplerState(0, D3DSAMP_MAGFILTER, D3DTEXF_LINEAR);
ResMan.DX_Device.SetSamplerState(0, D3DSAMP_MINFILTER, D3DTEXF_LINEAR);
ResMan.DX_Device.SetSamplerState(0, D3DSAMP_MIPFILTER, D3DTEXF_POINT);


this seems now to work great, looks 50x better, and now runs at 250fps for me, so its gone up by about 220fps which is fantastic... only 1 thing bugs me is i can see the line at which the detail of the texture drops, its very close, is there a way to make it slightly furthur away before it degrades the texture? thanks again, great fast help here.

EDIT AGAIN: lol sorry i left mipfilter as point, my mistake, ok works great as linear, now it is perfect, thanks again :))))))))))))

-MM

User137
18-08-2008, 02:34 PM
Would you upload it again to see what results the improve gave? :P

Memphis
18-08-2008, 02:48 PM
Would you upload it again to see what results the improve gave? :P

sure thing, [url=http://www.meka-meka.com/meka/Test2.rar]]

let me know of any sugestions, thanks

User137
18-08-2008, 04:51 PM
Framerate depends on view angle alot. Look up and it show 1200 (in new one), and down for above 600. Anyway the improved version was maybe average 100-200 fps faster. Mipmapping and filtering working smooth.

I was thinking NVidia Geforce 7300 LE PCI-E 256MB might be the bottleneck for you. LE was some really low performance versions maybe for laptops generally if i remember. Also it has effect if the card uses memory located in card itself or ram from the pc.

Memphis
18-08-2008, 05:17 PM
Framerate depends on view angle alot. Look up and it show 1200 (in new one), and down for above 600. Anyway the improved version was maybe average 100-200 fps faster. Mipmapping and filtering working smooth.

I was thinking NVidia Geforce 7300 LE PCI-E 256MB might be the bottleneck for you. LE was some really low performance versions maybe for laptops generally if i remember. Also it has effect if the card uses memory located in card itself or ram from the pc.

yep it does all depend on what is being drawn on screen etc, btw you can also use wasd to move around

Brainer
18-08-2008, 06:55 PM
I have 8800 GT, Pentium D 805 2,66 GHz, 2 GB RAM, Vista.

technomage
19-08-2008, 11:41 AM
Works fine here. Dell Inspiron 9300 2 Gig of ram with a Nvidia 6800 Go :)