Jump to content
  • Advertisement

jonahrowley

Member
  • Content Count

    358
  • Joined

  • Last visited

Community Reputation

300 Neutral

About jonahrowley

  • Rank
    Member
  1. jonahrowley

    Magic

    First, X is slow. It's not as snappy as the Windows GUI. Sometimes a program that generates a lot of X events or an excessive amount of X calls will slow everything else down. Second, flash is slow. Video players in flash are really just a nasty hack. Scaling is done in software and the video interfaces (like xv on Linux) are not used at all. This means decoding the frame in memory, scaling it in memory and then pushing it out to X. This all chews up CPU cycles and is much more expensive compared to using a video interface (which will do the video scaling with the video hardware). This may be the only thing happening here. I once rigged up the vlc plugin and a greasemonkey script to play youtube videos on a slow machine. It worked great, but you couldn't seek or anything. Edit: I missed the second half of your post. In the past, flash on Linux was extremely buggy. If you closed a page, you had a 50/50 shot of the flash program still running in the background. I haven't noticed that in a long while though. I'd just start closing programs until you find the one making the noise.
  2. jonahrowley

    GlaZ - Hardcore 3D arcade

    I'm only getting about 5k/s on the download. Everything else works great on this end, perhaps you should upgrade your hosting plan? I'll post again with comments once the download finishes and I can take a look. It'll probably be a few weeks at this rate though. Oh, and if you're stuck just use rapidshare for now.
  3. jonahrowley

    back pain?

    I think it's more likely your back is hurting because of your stomach muscles. That happens to me after I vomit, my lower back always hurts. I don't think it has anything to do with leaning over the toilet, you just strained muscles you don't often use. Get a heating pad, they work. If it's muscle pain, ibuprofen works well for some people.
  4. jonahrowley

    Problem with an enumerator

    Quote:Original post by ToohrVyk Ooo, nice! It's short and non-brittle [smile] though it does break when the enumeration values change with respect to what is displayed on the menu screen... That just means it needs further abstraction to be a functional and flexible menu class. This is just an example from a book he's exploring though.
  5. jonahrowley

    Problem with an enumerator

    Quote:Original post by Crypter Knowing that enums are simply integers, you can also just define mychoice like this:int mychoice = easy;...And it should compile fine. That can result in undefined behavior. If the integer value you assign is not represented in an enum, code expecting the enum to be sane will fail.
  6. jonahrowley

    Problem with an enumerator

    That's because there is no operator>> defined for your enum type. In order to input your enum type directly from an istream, you have to create an operator for it something like this: istream& operator>>( istream& i, choice& c ) { int choice; i >> choice; switch(choice) { case easy: case normal: case hard: c = choice; return i; default: // Out of range, you should throw an exception here throw some_exception(); } // This might be needed to silence a warning, even // though this code can never be reached. return i; } You'll also have a to define your enum type at a wider scope so both this overloaded operator and the code that uses it can see it.
  7. jonahrowley

    Don't understand LGPL

    Yes, you can make a commercial product and ship it with sdl.dll. This is something expressly allowed by the LGPL.
  8. jonahrowley

    Opengl Draw Circle

    How did you fix it? It's always frustrating when you come to someone's post through google and they say they fixed it, but never say how! I probably wouldn't be rendering 360 segments of a line loop. As few as 20 will look smooth and be a lot more efficient. There may be a glu function to do this (I know there is one for spheres), but if not you can look at the sphere function for inspiration.
  9. jonahrowley

    I have seen the end...No one was spared.

    Why were you reading a political blog in the first place?
  10. jonahrowley

    Tile Wars

    Quote:Original post by owl doesn't work :( Can you be more specific? It seems to be working for the rest of us.
  11. jonahrowley

    Untitled

    Eh? Did you hit "New Thread" instead of "Post Reply"?
  12. jonahrowley

    C++ Videos

    The only advantage videos will give you is watching someone work the IDE. An IDE is an easy piece of software to use though, so that's only really useful in the very beginning. Beyond that... all the same stuff (information, diagrams, etc) are in books. Go get a good book.
  13. I read something about this some time ago. I can't remember which system this was for, or which game, or anything. It might have been something like Pole Position on the 2600 of Speed King on the C64. At any rate, this particular machine had very low level access to the raster process. The program did some simplistic 3d calculations to see how far away the current scanline was, how narrow the road segment should be, color of the road segment, and how far (and which direction) it should be from the center. This worked in conjunction with the hardware sprites, so player and opponents are rendered correctly. Hope that helps, but it's vague and probably wrong :P If I ever find the link to what I was talking about, I'll post it here.
  14. Yes, you need dll image files for all of the images you intend to support. For jpegs, I think you need libjpeg.dll. For PNG images, you'll need libpng.dll and zlib.dll. Or you could convert all of your media to BMP (if possible) and get rid of SDL_image. It'll make your file sizes larger though.
  15. What you want is arr1 = arr2;. Alternatively, you can use *(arr1 + i) = *(arr2 + 1); but the first way is much more clear.
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!