• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.
Sign in to follow this  
Followers 0
Acharis

OpenGL troubleshooting

6 posts in this topic

[i]This question is half "how I can solve my problem" and half a support question "how should I proceed if a player reported similar problem, which means how to proceed in a more general way in order to track/fix/diagnose such/similar problems".[/i]

I have a very, very simple game (SDL + OpenGL, a mere few hundreds trangles (not hundreds of thousands, not tents of thousands, not thousands, just hundreds, it is basicly nothing, even for ancient hardware standards), I'm using very basic features, probably OpenGL 1.1).

Then I have this old computer (but still not that ancient, 2Ghz CPU, 512MB, and GF2MX400). It has fresh WinXP (SP3) installed and DX9.0c (so it is an old comp with all software reinstalled).

* I run my SDL+OpenGL game, it works but is very slow, (the main culprint being glCopyPixels call, but even without it everyting is too slow, it can't be that slow on this kind of machine, I used to make OpenGL games with much higher requirements for worse hardware than that one and everything worked).
* I run my another game, pure SDL, no problem, everything perfectly fast and works.
[s]* I run my SDL+OpenGL texture test, it shows "app need to be reinstalled" and refuses to run, I have not tracked the cause yet, still that's suspicious [solved].[/s]
* I try to run some downloaded GPU caps viewer, it crashes (I expect it might simply need some higher OpenGL version, so we sould disregard this symptom).

At first I thought it was something with drivers, but the OpenGL installed is v1.5.7 (more than enough for my needs), so it should be all all right? Maybe I somehow disabled hardware acceleration in my game's code?

I have trouble determining if the problem is on the computer's side (since on my other, more modern, computer everything works flawlessly) or maybe there is something in my code?
0

Share this post


Link to post
Share on other sites
[quote name='Acharis' timestamp='1347875572' post='4980826']
OpenGL installed is v1.5.7
[/quote]
Try to find the newest driver available. The opengl version is not the best indication for the driver version. Newer driver, which still support the same OGL version, are often more stable and fix some bugs.
1

Share this post


Link to post
Share on other sites
I recommend using gDebugger, AMD CodeAnalyst and Intel vTune to profile performance issues. The "app needs to be reinstalled" may be caused by a bad DLL dependency, so use e.g. depends22.exe to see if there are missing DLL dependencies. Also, have a look at the .embed.manifest file generated by Visual Studio to check what kind of dependencies were generated by the build, and see if there are any debug DLLs there.
1

Share this post


Link to post
Share on other sites
OK, this is becoming serious, I got another machine (different CPU, more memory, different GPU), reinstalled it fresh, installed newest drivers and... The problem is identical! Both machines report OpenGL 1.5, the game definitely require FAR less (heck, I don't even know GL1.5, my knowledge ended at GL1.2 :D). You can check it here if you like, it's REALLY low specs stuff http://silverlemur.com/work/URRPG/UnnamedRetroRPG-Test.zip

The only similarity between these comps is that I used the same CD with the OS (WinXP Home SP2).


[quote name='clb' timestamp='1347884693' post='4980852']
The "app needs to be reinstalled" may be caused by a bad DLL dependency, so use e.g. depends22.exe to see if there are missing DLL dependencies. Also, have a look at the .embed.manifest file generated by Visual Studio to check what kind of dependencies were generated by the build, and see if there are any debug DLLs there.
[/quote]I solved that one, it was not related at all. BTW, depends22.exe is cute indeed :)
0

Share this post


Link to post
Share on other sites
[quote name='GeneralQuery' timestamp='1349106278' post='4985775']
This is what i get:
[/quote]111 FPS, that's double of my best comp :) Me jealous :)
Thanks for testing.

OK, I get a feeling it has nothing to do with these drivers and computers and that I simply have not enabled Hardware acceleration in my code by some twist of fate (which is kind of strange since glReadPixels slows it all down considerably, as if it was copying from VRAM to RAM, which should indicate that HW accel is enabled?)

[CODE]const SDL_VideoInfo* ptr = SDL_GetVideoInfo();
printf("Hardware acceleration status: %d,%d,%d,%d\n",ptr->hw_available, ptr->blit_hw, ptr->blit_hw_A ,ptr->blit_hw_CC);[/CODE]This returns 0,0,0,0, I guess it means it's bad? :D


Questions:
- how can I check if the HW acceleration is enabled?
- can you point me to some SDL+OpenGL example (simple if possible) that you are sure have HW accel enabled?
0

Share this post


Link to post
Share on other sites
I have force changed SDL_driver to "directx" it made most of the HW status flags (SDL_GetVideoInfo()) turn to 1. Still, there is no difference in speed, it's crawling slow. Again, this affects these two older comps, on the modern one it works fast.

Any clues/theories what is the cause of this? Edited by Acharis
0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0