wintertime

Members
  • Content count

    793
  • Joined

  • Last visited

Community Reputation

4108 Excellent

About wintertime

  • Rank
    Crossbones+

Personal Information

  • Interests
    Design
    Programming
  1. 2D SDL Mouse Movement High CPU Usage

    You didnt show enough code, but you might be flooding the event queue and only check for 1 event every 10ms.
  2. Collision geometry in FBX (or in general)

    You could just calculate the capsule, aabb, bounding sphere or whatever from the vertices after loading the file. I'd think, thats better than giving your artist unnecessary work.
  3. I had alternating 503 Errors, SQL Errors without detailed error message and maintenance notices, not sure if yesterday or 2 days ago.
  4. If you are only allowed to control one ship of yours it will be extremely frustrating, as you have to watch your AI-controlled ships do stupid things like steering badly and taking unnecessary hits. When there is a boarding battle the opposing crews are mixed and firing on these ships would hit both, so it might be wise to avoid doing that, event though it might be possible to do (also for AI). I dont think they would have started plundering while the battle is still continuing. It might be useful to just take over that ship temporarily and only collect/transfer loot when everyones safe after the battle. Ships dont sink by themselfes unless there is a leak in their hull. They might be taken back or shot on until they have one though. Why would it be game over when you still have those other ships in your fleet? That could get very frustrating.
  5. Why do you think that? If you just draw that background inside the changed rectangle you do not overdraw anything outside it and therefore you do not need to redraw anything else outside it. (You either just change the draws to be only inside or use scissor.)
  6. IIRC glut was just created to allow easier creation of simple OpenGL demos having a single window for the lifetime of the program. You are probably better off using a more modern library like GLFW, which gives you more options.
  7. drag and drop

    You might want to read the forum FAQ, especially the part about asking questions. If you also only copy/pasted your large amount of code into that other forum without giving any more information, its no wonder people ignored you.
  8. Is there any reason to use SDL2?

    It seems you are only using SDL, because GLFW does have support for Wayland/Mir, its only still called experimental. Afaik SFML has support for mobile.
  9.   Thanks for the feedback. Indeed it's gone live with the new homepage. I've been testing on a few mobile devices - mind if I ask what are you using? I don't seem to be seeing what you've described, so maybe my testing isn't broad enough. Having said that, I've been going back and forth on the breadcrumbs (the top/bottom nav links). Perhaps I can find a way to fit them back in. I took them out on mobile because they cluttered things up.   Its a Samsung Galaxy A5-6, screen is in full HD res and I used the "Internet" Browser from Samsung. It is looking a somewhat better now without the unused gray space at the sides, thank you for that. The strangely formatted index of the whole forum is still there though.
  10. Am I right in that you activated the new page layout for everyone a few minutes ago? It felt like the useability on mobile suddenly dropped. The text inside the postings got only about 50% of the tiny available screen width, before it was maybe 75%. Holding the phone the other way around there would be nearly no space when the on screen keyboard is open, as the top bar is always floating there. I think, thats because its supposed to be the replacement for the missing navigation links at top and bottom, but opening and navigating the menu takes a number of taps where the link took one and this is necessary to do pretty often. The forum index looks pretty squeezed too, not sure if its because some parts had been invisible before or below each other. Btw., there is not much space in the part for typing the posting in and scrolling it without scrolling the whole page too is difficult. I thought I'd tell you while you are still working on it. ;)
  11. If I click on one of the dots left of the postings on the main page at https://www.gamedev.net it does not bring me to the newest posting (like it does when browsing some subforum), only to the beginning of the thread.
  12. That its bugged for you is certainly worth fixing. Also everyone including new people making the effort to give good answers to questions is worth upvoting. So, I know there needs to be some incentive to give some upvotes, but it feels wrong that some people can make like 100 free points a day from upvoting random stuff, often inflating other peoples points in some opinion-threads while worthy postings answering questions often get no points. Could there be a cap for the free points from upvoting much earlier than the allowed votes to reduce this, at about 10 for everyone maybe?
  13. I agree, there is inflation already. 3 to 5 upvotes per day should be enough for most people, as I highly doubt there are even that many threads with good postings to upvote, when you consider that if some posting already got some its not necessary for everyone to add their vote too just to get a point for themselves.
  14. Win32 message handling questions

    If you are not handling WM_ERASEBKGND and WM_PAINT then depending on how you set up the window the GDI may draw stuff in DefWindowProc, which might interfere with your drawing. I remember a while ago I was catching both, set a boolean if necessary, did a ValidateRect on WM_PAINT and used the correct return values to pretend drawing was done, without calling DefWindowProc.
  15. No, a Singleton is for when you really need to forbid more than one instance, not for when you just need only 1. It also allows global access, which leads to spaghetti code with hidden dependencies. The best and easiest route is to just create a normal class and just create a single object from it. That way, if you later need more than 1, like if you would decide to add splitscreen mode, you wont get a headache from detangling the code relying on the Singleton.