Strange Slowdown

Blitz3D Forums/Blitz3D Programming/Strange Slowdown

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Sorry, I should have been more explicit in the first post. It's definitely something weird, not the usual suspects.

- Do you have some Load... command in the main loop (ex loadfont, loadmesh, loadsound...) ?


No. Nothing like that.


How many triangles are made the models with ?


Total number of polys on screen must be around 250. And no more than 20 surfaces. Definitely not a problem.

How the main loop looks like ?


Erm.. practically nothing in there yet.

Repeat
   docameracontrol()
   UpdateWorld
   RenderWorld
   Rect MouseX()-2,MouseY()-2,4,4
   dofps()
   Flip
Until KeyHit(1)>0


camera control is just a zoom on the rmb, and do fps just counts the fps and displays them.

what else happen when you zoom in ? Are there other function calls invoked ?


No. Nothing but zooming.

seems to me that your gfx card does not really like windowed mode


Well Blitz seems to prefer fullscreen ( probably a DirectX thing ) but I can run other games in Windowed mode with no problems.

if you set the zooming in at the very beginning of the prog, I mean, without using the mouse, does it slow down in the same way ?


Good Question. I'll try that, and post back.


do you use a waittimer command ? If not, try with it, to force the frame rate at a certain fps


No, but I never do, and I have another game I'm working on with many more polies and much more going on that doesn't have this problem. I'll take a look at waittimer, but I'm 99% sure this isn't the issue.

- your pc specs ?


1200 Athlon, 256Mb Ram, Gf2Mx, XP.. no problems running other games I've written in Blitz.