Unfathomably slow... Any help/ideas?
BlitzMax Forums/BlitzMax Beginners Area/Unfathomably slow... Any help/ideas?
| ||
I own both BlitzPlus and Blitz3D. Both are awesome!! I recently downloaded BlitzMax Demo 1.09 for Windows. I was really excited about BlitzMax. Just about ready to buy it on the spot... Until I ran my first program just now... I sure hope someone can help, because if BlitzMax is this slow, there's just no chance, and I mean ABSOLUTELY NO CHANCE, I'll ever even consider buying it or recommending it to anyone else. I mean seiously, what good is Cross-Platform compatibility if your programs run worse than badly-written JAVA? Here's some more info: To test BlitzMax, I cut-and-pasted in a small program I wrote in BlitzPlus. It uses CreateImage, GrabImage, and DrawImage to create the Game-World out of 32x32 tiles. Pretty simple stuff. In BlitzPlus this program gets 60 Frames per second (will get much higher if I turn off VBlank Wait). In BlitzMax Demo 1.09 for Windows, I'm getting an astounding ONE FRAME PER SECOND or less. I tried the following things (and Build and Run the program after each): 1. Uncheck "Debug Build" in Build Options 2. Uncheck "Quick Build" and "Build GUI App" in Build Options 3. Turn off AlphaBlending, ie: SetBlend(SOLIDBLEND) 4. Turn on DynamicImage, ie: AutoImageFlags(DYNAMICIMAGE) 5. Turn off all ImageFlags, ie: AutoImageFlags(0) Nothing has helped. I still get 1 FPS. Any other ideas/suggestions? Here's some more info about my computer: CPU: Athlon 3200+, 400 FSB RAM: 1 Gig DDR-400 VIDEO: AGP4x GeForce4 Ti4600 (NVidia Driver 65.73) with 128 Megs DDR OS: Windows XP Sp2 Please help... I've got a feeling there's something REALLY obvious I'm missing here. Because there's just no way a simple 2D program should be running THIS slow... As I said, I get 60+ FPS running the same program in BlitzPlus, even on a lesser computer!! Many many thanks for any suggestions! |
| ||
I just discovered something totally obvious... I had: Graphics 800,600,16,1 (in BlitzPlus that last ,1 means "full screen mode", but in BlitzMax it means "set refresh to 1 FPS"). So if you are having this problem, check your Graphics statement first!! Removing that last ,1 sped things up a lot... However it still seems to be running a little slower than I would expect it to. Doesn't look/feel like 60FPS. I'd say around 20 or 30... But I haven't put an FPS counter in there yet to be sure (will do that next). Also Papa Lazarou suggested using the FlushMem() command. Going to try that too. Incidently, I found out about that last ,1 thing in this thread: BlitzMax Forums/BlitzMax Beginners Area/Orientation guide for existing Blitz users If you are coming from the world of BlitzPlus or Blitz3D, this post is a must-read! Very helpful...! Now that its running at a decent speed, I take back my angry words, and instead say: BlitzMax ROCKS!!! |
| ||
Try to do write 'Graphics 800,600,16,-1' or 'Graphics 800,600,16,Nosync' Without this statement it will take the default refreshrate. |
| ||
Heh. I did the same thing a few weeks back. Took me hours to figure it out. |
| ||
Also, update your graphics card drivers as its possible you are running Microsoft's crappy ogl software driver. |
| ||
lol |