Advertisement Jump to content
  • Advertisement


  • Content Count

  • Joined

  • Last visited

Community Reputation

927 Good

About noatom

  • Rank
    Advanced Member
  1. Here's my question: if about 30-60 times a second I receive new data that needs to be processed, does it even make sense to consider using async with a future? A future, when called, always has to return. So using a future means the launched thread will always close. Repeatedly using futures would mean repeatedly creating/closing threads those 30-60 times a second. Is anything of what I wrote above wrong? Or it's true, and I should use a raw thread for this scenario. If it would be true, it'd mean any sort of task that requires repeatedly calculating data in a short inverval, would be better off on a raw thread.
  2. [media]https:[/media]   Dev Blog: Click Steam Greenlight: Click   This project is still in alpha, please keep that in mind.   SYNOPSIS This is a surrealistic tale about loss, love, and regret. A man with no memory of his past, leaves the psychiatric facility he wakes up in, and takes on a journey to explore the outside world. He seeks to find out who he was in the past, who were the people he cared about, and what happened to them.     ABOUT THE GAMEPLAY This is a single player first person game, set in a heightened reality. Elements of puzzle combined with visual storytelling.
  3.   This is from valve's article:   When another player presses W move forward, say 100 velocity in the forward direction is added to his character.That gets sent to the server, and applied locally on his machine.   If I know that from the server, why couldn't I just simulate the next frames, based on knowing that he had 100 forward velocity a while ago?   Yes, I'm aware that if there is a lot of latency, this sort of prediction will make everything look choppy, since the server will keep overriding the local prediction of a client, but still, claiming its impossible to predict other players positions seems a bit harsh.
  4. I'm trying to convert depth data to pixels(8 bit).   I tried the default formula: BYTE intensity = static_cast<BYTE>((depth >= nMinDepth) && (depth <= nMaxDepth) ? (depth % 256) : 0);    pRGBX->rgbRed   = intensity;  pRGBX->rgbGreen = intensity;  pRGBX->rgbBlue  = intensity;   However that has a lot of banding issues. I need to get rid of the banding.   So what I did was take the min & max depth values from the kinect, and use them to normalize any depth value the kinect sends me.   After that I would just multiply the normalized value with 255.   Result:       The banding is gone however there are still issues such as: there's not much diversity in range, i mean the values are either very close to black, or quite close to white. And most importantly, the artifacts, especially those in the upper right corner.   Any ideas for improvements?
  5. So, I haven't found a lot of info on this subject. I know the items are reffered to as shell extension, and how you can add one by editing the registry. But nothing about adding one through code.   Anyone know how you 'd add your app to the right click explorer menu, in C++? (yes I know you can use code to edit the registry and add your app there, but I'm thinking maybe microsoft has some functions nested in it's API to make the process faster)
  6. noatom

    "Program" start-up in windows 10

          Yeah, you're right. I can reproduce exactly what the OP describes on Windows 10 using any number of nonsensical registry entries.   It also looks like there's no way to identify exactly which key is the problem using the task manager, but this "obsolete" program still works fine.       So I enabled the "Command line" tab for Task manager(I genuinely didn't know there's that option until now), and there it actually lists the path, which guess what, leads to outlook. With that app that cowsarenotevil suggested, it actually gets listed as outlook 2013!  
  7. So I just upgraded to windows 10 today, and after almost a day of usage, I took a look at the Start-up tab in Task Manager. There I see listed:   Program, literally, the name listed is "Program". It says that it's enabled, and the startup impact is not measured. There's no data about the publisher.    For the people who run windows 10: do you have it listed in the Start-up list too? (im a bit suspicious)
  8. template<typename T, std::size_t N> constexpr std::size_t arraySize(T (&)[N]) noexcept { return N; // and } (from the book Effective Modern C++)   arraySize returns the number of elements inside an array. The parameter to the actual function is a reference to an array of type T with N elements in it.   But I don't understand how N is deduced, and why it even appears in the tags for the template.   arraysize(myArray);   How is N deduced from the above call?
  9. So I was looking through an older C++ book and I stumbled upon this problem: Display the intern representation of a char.   And the way it was solved: struct bits{ unsigned b0:1; unsigned b1:1; unsigned b2:1; unsigned b3:1; unsigned b4:1; unsigned b5:1; unsigned b6:1; unsigned b7:1; }; union character{ bits b; char c; }; character byte; int main(){ cin >> byte.c; cout << byte.b.b7 << byte.b.b6 << byte.b.b5 << byte.b.b4; cout << byte.b.b3 << byte.b.b2 << byte.b.b1 << byte.b.b0; } } And I got a bit confused, because there was some syntax I've never seen before: unsigned b0:1;   What type is b0? And what does ":1" do?   The way the code works, it appears that b0 is of type BIT, which I'm not sure can happen in C++.
  10. So, Im a bit confused about some of the methods used to handle collisions, when a has function outputs the same result for 2 keys, and you want to store that result.   Say for example:   key: rat -> hash(rat) = 13 key: tar -> hash(tar) = 13   (those are pure examples, I came up with the values on my own)   Some methods used to handle this situation, when trying to store the results in a hash table:   If multiple items are assigned the same hash code, we “chain” them together. Each position in the hash table serves as a bucket that is able to store multiple data items.   Both rat and tar 's values would be stored in bucket 13. So, if I had some values I wanted to store for each of them, unrelated like: rat's value = 9 and tar's value = 51 Bucket 13 would contain: 9, 51   But my question is, if I wanted to retrieve back the value, and I hash "tar", I get 13, how do I know WHICH value in that bucket corresponds to my key?! How would I know it's not 9, but 51?   When the position assigned by the hash function is occupied, find another open position. • Example: key “wasp” has a hash code of 22, but it's value ends up in position 23 , because position 22 is occupied.   Again, how would I be able to ever retrieve back the value for wasp? If I hash "wasp", get 22, and retrieve the value found in element no 22, should I use that value? Or should I travel +5 elements down?    If I hash rat first, I get 13, and the element in the table is not used, I store the value 9 there. If I hash tar, I get 13, but now the element is used, so I just increment until I find a free position, 14,15,16 if 16 is free, I'll the value 51 there.   But how would I ever know how to retrieve back the value for tar? I hash tar, get 13, and retrieve the value at element no 13, but it turns out it's actually rat's value, 9! not tar's 51.
  11.   Yeah, that makes a hell of a lot more sense than my logic. Thank you 
  12. If I had:   00010101   And I wanted to check if the third bit, the one between the other 2 positive ones is positive, should I do a shift to the right, so it becomes the right most 1 bit, then do a shift to the left, so it becomes the left most 1 bit? Then shift, AGAIN, so it goes back to its original position, so i can use & on it?   >> 00000101 << 10000000 >> 00000100   What im actually asking is: when the bit you want to check, is between other bits, should I handle it this way?
  13. I use an insert command to insert data into a table. Now, I double check, and the table contains all the columns that I use in my command. I also checked, and the types of data I assign for the values to be inserted, match the type of data in the columns in the database.   The exception I get is:   Table has no partition for value 719528   Any idea what this means? 
  14. resize did the job, and yeah, will use the other tips too. thanks!
  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!