CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Sharsnik

Page 1 of 2 1 2

Search: Search took 0.03 seconds.

  1. Replies
    1
    Views
    802

    Help with DateTime and timing hiccups

    I'm using DateTime to track elapsed time, which I realize now may not have been the best idea.

    The issue I'm having, is that something is causing my timer calls to be delayed by 13~20 seconds. (Or...
  2. Re: how to get the output pattern of this function..

    If you want to just generate a table of inputs and outputs, why not just not write a test program raelly fast and display the results while looping through n = 0 to 10 and m = 0 to 10. If you look...
  3. Re: how to get the output pattern of this function..

    Your (2, 2) input is incorrect, it should be 0.

    Also, what's the context of this problem? If it's for homework I can give hints, but not the answer.
  4. Replies
    6
    Views
    1,073

    Re: Delete Vector Error

    Just out of curiousity, when would you want to use dynamic vector allocation?

    Vectors are a VERY lightweight storage class.
  5. Replies
    19
    Views
    2,409

    Re: Dynamic memory implementation

    char arrays are just that, arrays or characters. This means you can directly modify them the same way you would a basic array. In this case:



    sequence[strlen(sequence) + 1] = '\0'; //Extend the...
  6. Replies
    3
    Views
    883

    Re: MySQL Databasing questions

    Ah, I apologize... this is a online game, so all the MySQL related stuff takes place on the server side, not the client side. So, just to be safe, assume we have some 100,000 unique characters, each...
  7. Replies
    3
    Views
    883

    MySQL Databasing questions

    Hi, I'm making a game that makes heavy use of MySQL for databasing. However, I'm not as well versed in the subtlies of MySQL than I'd like to be. Therefore, I'd like to ask a few questions.

    First...
  8. Replies
    0
    Views
    859

    Making .x files

    I've been trying to make animated .x files in .3ds

    It was all going well until I started to animate. The bones smush the model in really weird ways (not as intended <g>)

    I was wondering if...
  9. Replies
    2
    Views
    988

    Re: Real-time loading of models?

    Yeah, I'll probably have to look into texture splatting a bit more.

    The bigger issue I see, is that I want the world to be seamless. And, since you'll be constantly encountering new models and...
  10. Replies
    2
    Views
    988

    Real-time loading of models?

    So, I have the basic set-ups for a 3D engine pretty much laid out. But, one major thing that's confusing me is how to load models in real-time.

    Pre-loading everything works fine, but it takes a...
  11. Re: Null pointer error in D3DXLoadMeshHierarchyFromX

    It's gotta be in the allocation hierarchy... right? Here's that code :/



    HRESULT allocateHierarchy::CreateFrame(LPCTSTR name, LPD3DXFRAME* frame)
    {
    printe("CreateFrame");
    modelFrame*...
  12. Null pointer error in D3DXLoadMeshHierarchyFromX

    I'm trying to load .x animations, but my call to D3DXLoadMeshHierarchyFromX is erroring out with a null pointer error. The error occurs right after my CreateFrame function - before any other of the...
  13. Replies
    1
    Views
    894

    Re: Adjusting the size of your lens

    Never mind, got it.

    D3DXMatrixOrthoOffCenterLH()
  14. Replies
    1
    Views
    894

    Adjusting the size of your lens

    Hi, I'm trying to render a 3D world to look like it's rendered in 2D (aka sprites).

    So, I need a FoV of 0 (ideally). However, when I set a FoV of 0, I render nothing, as, apparently, the...
  15. Replies
    1
    Views
    1,540

    LUA interpreter

    I'm setting up a LUA interpreter for my game. I get the basic concepts of registering events to call LUA functions.

    What I'm having trouble with is making sure that different LUA scripts don't...
  16. Replies
    1
    Views
    987

    Data storage in MySQL

    Hi, I was wondering what the best way to store dynamic arrays in SQL was. The 2 options I can think off off the top of my head are:

    1) create new tables for the items you want stored in the...
  17. Replies
    5
    Views
    2,036

    Re: Max Texture size on cards?

    Yeah.. in retrospect that would seem to be the best option.. though, since I plan on switch to #d before anything gets "official" I think the 2048x2048 hot-fix will suffice. Thanks for all the tips :3
  18. Replies
    5
    Views
    2,036

    Re: Max Texture size on cards?

    I switched around the size of the sprites, so they're all 2048x2048. That's still a bit big, especially for older cards.. but that's good enough for a place hold 'til I goto 3D models...

    Anyone...
  19. Replies
    5
    Views
    2,036

    Max Texture size on cards?

    Hi, I'm designing a (currently) 2D game. The sprites I use are getting pretty big (96x96 pixels, about 500 frames per). I'm currently storing them as a single texture, which works fine, except that...
  20. Thread: Tcp_nodelay

    by Sharsnik
    Replies
    10
    Views
    6,417

    Re: Tcp_nodelay

    Yeah, at that time I went off to Japan ^^

    Far as my network architecture goes...

    I am running Windows XP Professional Version 2002 SP2 with a AMD Athlon 64 X2 Dual Core 4600+, 2.41Ghz, 2.00 GB...
  21. Thread: Tcp_nodelay

    by Sharsnik
    Replies
    10
    Views
    6,417

    Re: Tcp_nodelay

    They're actually 4 bytes, the buffer didn't clear after each recv(), so it wasn't terminating :3

    Even if you clear the buffer after each recv() the results are exactly the same.

    Edit: Uploaded...
  22. Thread: Tcp_nodelay

    by Sharsnik
    Replies
    10
    Views
    6,417

    Re: Tcp_nodelay

    There's lots of useful information on that site, thanks.

    I think I might have a bit of an issue with my networking...

    The following are a pair of very simple UDP based Client/Servers, the...
  23. Thread: Tcp_nodelay

    by Sharsnik
    Replies
    10
    Views
    6,417

    Re: Tcp_nodelay

    What do you mean by this? Should I be padding packets with blank space? Most my messages are very small, 5 - 100 bytes.

    I will run more tests of UDP sockets, and see if I can get it working...
  24. Thread: Tcp_nodelay

    by Sharsnik
    Replies
    10
    Views
    6,417

    Re: Tcp_nodelay

    UDP would be another logical choice. However, I know that many other MMOs use TCP (WoW, athena's RO server). So, I believe it is possible to get the desired effect with TCP.

    Now, it may be doable...
  25. Thread: Tcp_nodelay

    by Sharsnik
    Replies
    10
    Views
    6,417

    Tcp_nodelay

    Hi, I'm trying to design a network system for an online game (MMORPG style). I'm having issues with the delay times I'm seeing in packets. Using standard TCP sockets I end up with too much random...
Results 1 to 25 of 50
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured