Jump to content
  • Advertisement

AbandonedAccount

Member
  • Content count

    407
  • Joined

  • Last visited

Community Reputation

1352 Excellent

About AbandonedAccount

  • Rank
    Member

Personal Information

  • Interests
    Art
    Audio
    Business
    Design
    Programming

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. AbandonedAccount

    How much longer can Trump/Trumpism last?

    To be clear, I do not care at all what you talk about in the forums here. I only care that I have to be told you are talking about it on the front page of the site. From someone claiming to get nauseous when being reminded Trump is president, I would think you would understand why people might not like seeing even the title of the thread. The site administrators just need to decide if they want to have political threads looking like such a significant portion of the content on the site, and if they want to present these types of threads as examples of how people will be treated when using the site. It is their call, and I believe I have been clear enough in my reasons why I prefer politics be kept off the front page. But I can understand the allure of clickbait to businesses.
  2. AbandonedAccount

    How much longer can Trump/Trumpism last?

    I can’t speak for others, but this topic shows up on the front page of the site for me even if I am not logged in. I did not go to any forum at all. And yes, I would also avoid frequenting the site if it had celebrity gossip on the front page. I also would avoid buying books on programming or procedural generation or artificial intelligence if the author feels it necessary to constantly talk about divisive political topics in said book.
  3. AbandonedAccount

    How much longer can Trump/Trumpism last?

    I strongly recommend hiding politics from any page where someone did not explicitly seek it out. I happened to check out the site again, and seeing this thread is a huge turnoff. I did not seek it out, and a site that may try to suck me into political bickering is pretty much an instant rejection. I don’t want to waste my limited time on this planet passionately hating others merely because they have different political views. For the topic itself, Trump supporters will blindly support Trump even when he does something negative exactly as long as Trump opposers will blindly oppose Trump even when he does something positive. And each will receive positive reinforcement from likes and thumbs ups and retweets and equivalents. And algorithms will ensure each side sees more views like their own and less in opposition, so they will truly believe the world is more in tune with their view and more opposed to other views than what reality is. How long will this last? There is currently nothing on the horizon that will break the feedback loop we as a society have created, so probably quite a while.
  4. If one is encountered before zero at the interlockedmin statement, both the zero and one successfully pass your clip test, but you do not know which order they will return col. I don't know if that's the only issue, but it sure seems like something you didn't intend.
  5. Is your code so large it cannot be included in your post? The iPad I'm using right now isn't set up to see it, and I don't care enough to help that I'm going to change that. And I also prefer someone looking at this a year from now will be able to see the relevant details even if the file is removed from Dropbox or whatever. My blind guess would be you copied data to a local variable, and are just atomically operating on that local variable. But the odds of that blind guess being right aren't great.
  6. AbandonedAccount

    Upgrade Update: Forum Organization

    [quote name="Khawk" timestamp="1491246212"][quote name="Lactose" timestamp="1491241623"] With both the Audio and Visual Arts topics having only a single forum listed in each, maybe merge them as "Audio and Visual Arts" or something? [/quote]   There have been requests for us to split Visual Arts into 2D and 3D forums, so probably better to keep it split from Audio as a category. Audio can have Music and Sound FX as a forum I think.[/quote] Do you really need 2D and 3D as independent forums if you have tags and prefixes? I'd rather just have shader effects, textures, sprites, and 3D models as tags than try to figure out where various hacks fit (ex. billboard an effect into a 3D scene) I don't love the idea of menus with only two entries, and both audio and visual have that issue. Game design also feels light on entries, and has itself as an entry (always feels odd). But I feel like UX being there is an obvious headache waiting to happen, so assume that won't exist, leaving only the self-entry and one other.
  7. AbandonedAccount

    How to properly get delta time on modern hardware?

    Correlation does not mean causation. Did you confirm the program switched threads, and that switch aligned with your issues? Are you using RDTSC or anything derived from it? Your issue is somewhere else, but I suspect you'd rather blame QPC than accept that fact. If QPC had the issues you seem to think it has, sfml would be breaking every single application that uses their clock. SDL would break anything using SDL_GetPerformanceCounter. Believe me or don't. It's really your call at this point, and I think you've gotten all the help you can receive until you provide more details that reveal where the actual bug is. On systems with invariant TSC, yes. It's an optimized call in those situations. A quick google search shows CPUID.80000007H:EDX[8] is what indicates invariant TSC. But on older systems, QPC will absolutely be a far more expensive call. You can even google about complaints on its performance.
  8. AbandonedAccount

    How to properly get delta time on modern hardware?

    No it doesn't work. QPC is speeding up every time the window receives a message and slows down when it's got full focus. Is there anything useful anyone can contribute?Elaborate please. QPC does not change speeds. It's just an API call. Feel free to ignore everything I said, and just go with what Hodgman said in the first response to your original post. It is the correct advice (although TSC doesn't need adjustment for dynamic clocks, just synchronization logic between cores that is provided by QPC). Or google this stuff. You can find MSDN articles explaining why you should use QPC instead of RDTSC in multicore, why to use QPC instead of timeGetTime, etc.
  9. AbandonedAccount

    How to properly get delta time on modern hardware?

    So Microsoft wants to tie people into their ecosystem with QPC. Why does it matter? The result is still any motherboard manufacturer (or whoever) with a bug in multicore access to QPC will feel immense pressure to fix it. You want that for any bugs in your code. Trust me. And we are far enough into multicore that I bet you will never see a major bug in this area again, unless Microsoft abandons their recommendation to use QPC. If you aren't actively seeing an issue, just use QPC with certainty that it will work how it is supposed to work. If you happen to run into a bug down the road (doubtful), it's easy enough to patch the code by replacing QPC calls with calls to read a timer you publish from a thread that doesn't change cores. But honestly, that will never happen. This theoretical bug you're wasting time trying to avoid just doesn't exist today. Sure it existed in the first multicore systems. But unless you have a time machine, don't worry about it.
  10. AbandonedAccount

    How to properly get delta time on modern hardware?

    This is just incorrect. If you are getting different values from different cores, it is a bug with the hardware timer being accessed (or more likely the BIOS code providing access to that hardware timer). If you do anticipate such bugs, I'd still use QPC or RDTSC locked to a core and publish that value for other threads. They still would have the same problem since a single thread can and will change cores over time. And I advise against each thread having its own time. There is only disadvantages over publishing it from one thread (your highest resolution one) and having all others use that. You'd have sync issues since physics and animation and sound and everything else are all supposed to happen in a coordinated manner. There is a definitive answer from Microsoft. If you're using Windows, they tell you the best practice is using QPC. While that doesn't mean you can't hit bugs, it does mean those bugs are more likely to get fixed since they are breaking the preferred solution. (Edit) Minor clarification: I mention RDTSC, but only recommend it if you are locking on a specific core. And I don't particularly recommend doing that unless absolutely necessary (hint: it probably is not necessary!)
  11. AbandonedAccount

    How to properly get delta time on modern hardware?

    Why are you locking to a single core for QueryPerformanceCounter? The whole reason you use QPC instead of RDTSC is so you don't have to lock it to a specific core. If there's a legit reason, you should probably just make a dumb thread for it and not much else since you don't want to rely on a specific core for your core game loop or something. Then just have a variable updated that the other threads read. Unless Microsoft changed the specification for TimeGetTime, it is entirely inappropriate for a high-resolution time counter. It used to update only 64 times per second.
  12. AbandonedAccount

    Getting back into C++

    Using Visual Studio to deploy for Linux isn't bad. It was a lot worse in the past. If you prefer Visual Studio, at least try it and see for yourself. It's purely an opinion, so I can't promise you will agree. Just jump in for content, but make sure you find resources using C++ 11 or 14. Do a threading tutorial if needed, then just play around for a while. Do the same for each topic. But never fear doing intro-level tutorials, no matter how much experience you have. They're super quick when you have experience. You can just skip a ton of it. I've been coding for almost twenty years, but if you looked at my browser history six months ago you'd think I was in high school. (I did the opposite transition, from C++ to C#)
  13. AbandonedAccount

    Upgrade Update and Site Organization

    I am all for updating to better reflect reality, but you need to keep it simple. Sure, you'd elevate obscure areas, but you'd also kill everything else. Why doesn't business have an entry for marketing? It feels like the top concern, not legal or management. Maybe rename creative to content creation? Sound, 3D modeling, sprites, level design, etc as subcategories? I'd probably support splitting technical since it's way too bloated (11 entries, and plenty missing even still). Maybe if you can figure out a way to describe building your own stuff versus using existing tools. It feels like they're mixed together even though they have zero overlap on an individual level. I absolutely do not need to know how to implement a game engine if I'm using Unity, for example. And someone making their own engine has no use for how to use Unity. Not that there is a good entry for using a game engine right now, but hopefully there will be. I have no idea what education means. If you're talking about educational game design, it doesn't feel different enough to need a category. You do the same stuff. If you're talking about tutorials and learning, I have to ask what aspect of the site is aimed anywhere else in the first place? I don't know what industry would be either. And devops feels like a subcategory or something relating to teams that should exist. But these are all random ideas without any real thought put into it. I'd just hate to see you make the equivalent of an awful UI where there's a hundred menus and you have to go six deep in sub menus before you can even find anything. Best of luck.
  14. Automation is hard. I've made a lot of money because of that, and on both sides. I've been paid healthy amounts to automate things, and I've been paid handsomely for things that only needed to be done because automation is hard. Not in games, just in general. If you want an example in games, look at Rimworld. You can watch videos if you don't want to buy it as it is very popular to post videos. It tries to automate a lot of stuff, and often this means a character will run fifteen seconds across the map to start X job, get there and decide to immediately run back for food, get there and eat, then run back to resume job, then decide its time for sleep, and basically never get much done. And your person might decide to eat raw food X, then get sick or complain they didn't like it, instead of eating a different food that was two spaces further away that they would have liked. Or your person might run into a gun fight trying to repair walls catching stray bullets. It is a game still actively in development, so these things might get fixed. But it should display the difficulty, especially how all these interacting systems make things harder because of those interactions. And on top of the difficulty, you are spending time developing code just to make sure the customer doesn't even get to play a certain aspect. That is often hard to justify. Imagine going into a meeting proposing you spend a week or two automating X, and the boss responds "but don't players enjoy doing that?" You better have proof they don't. RPGs being mentioned make me think of that. There is a perception, whether right or wrong, that players enjoy looking in their inventory and seeing awesome upgrade X and equipping it. The prevalence of loot boxes seems to imply the perception is correct for at least some players, and also seems to imply developers are more likely to add even more "let me see what I got" mechanics than automate them away.
  15. AbandonedAccount

    Compiler warning about missing ending '

    You can just put the entire string in double quotes, and it should be fine. \' should also work. Or '''. The issue is that technically ' is not a valid preprocessor token unless it is part of a character constant or part of a string literal. Some compilers ignore this restriction, so the code you provided may or may not cause an error.
  • 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!