Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!

1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


Member Since 03 Jun 2005
Offline Last Active Oct 01 2013 11:54 AM

Topics I've Started

out of texture memory question

13 December 2009 - 04:17 AM

Hello all, Say I have 300MB of texture loaded, and binded properly, so I have id for all textures. But my system have VRAM of 32MB, and I'm using 300MB textures. The quetsion is, what is happening in this scenario? Does OpenGL API constantly destroying old textures and moving new textures from system ram to VRAM as soon as new texture doesn't fit in VRAM? How does this affect system performance? And what if I use 1GB of textures on system that have only 768MB of system RAM? I didn't find any texture destroy functions in OpenGL [smile] is there any similar function? thanks in advance

some DevIL and OpenGL texture questions

09 December 2009 - 06:02 AM

Hi all, after some time I decided to move to OpenGL from DirectX, found DevIL for image manipulations, but seems that I cannot find some answers on net. These questions may seem trivial, but I'm a pretty new to OpenGL. First of all, if I load texture with DevIL and draw one rectangle, the UV coordinates seems tumbled up, like mirrored image. Probably I'm missing some parameter flag, because if I load it normally, the image is shown properly. What I'm missing? Also is this enough to load image? : ilInit(); ilutInit(); ilutRenderer( ILUT_OPENGL ); tex_id = ilutGLLoadImage( "cp.jpg" ); the texture is shown properly, but do I need: ILuint handle = ilGenImage(); ilBindImage( handle ); because is working without it. And last one, when I load texture with: ilLoadDataL( pData, lDataSize, width, height,16,16 ); how can I make OpenGL texture from it? thanks in advance

[web] global variables in PHP

07 October 2009 - 10:34 AM

Hi all, I'm just curious, is there any possibility to define on server startup, or first login of one user, one class (variable) that is available always to all users. Say user A logs in, sets one variable X to 5, then B logs in and see that X is 5. Something like superglobal variables. This can be ofc done with the MySql, but I need variables that exists purely in memory. Is there any way to do something like this? thanks in advance

[web] SQL Replication or Clustering?

15 May 2009 - 07:37 AM

Hello I have one small problem. I have some small online gaming system, with game servers and one MySql server containing the game specific data. The problem is that if there is a physical failure of DB server everything will stop. So I want to introduce one slave DB server that will contain all the data from the master and in the case of failure it will take immediately role of primary DB server until the problem with master DB server is solved. I'm a little confused with difference between replication and clustering. What is the best solution for my problem? If I understood well clustering needs more than two servers while replication can be done with two servers. My needs are that there is 0 data loss and that in case of failure the system can continue operations immediately. Your opinions? And how much servers I will need? thanks in advance

"Flickering" in DirectX

25 March 2009 - 12:21 PM

Hello there, Let me explain my problem. I am creating several swapchains to render to multiple targets. On some point in program I need to stop rendering on one or more views, so I'm actually not calling the Begin/Clear/End functions. After calling the present everything is draw as I wanted, "non-drawing" views holds the last drawn scene because I didn't called draw methods to that view. But if there was some movement when I stop the drawing operations on one of the views, back buffer hold different scene than front buffer, and after calling the present function I get some really annoying effect, the whole scene is trembling. So I think there is only two options to remove the problem: - copy rendered scene from front to back buffer - somehow tell present function not to flip from back to front buffer on that swap chain ( but I don't think this is really possible ) In any case I don't really know how to achieve that...[sad] So any help will be appreciated. Or any other thought about this... thanks in advance