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!


lomateron

Member Since 03 Feb 2012
Offline Last Active Yesterday, 08:25 AM

Topics I've Started

does g_p2DTex->SetResource(); moves GPU memory?

Yesterday, 06:28 AM

if I do this:

 

g_p2DTex->SetResource(textureA);

//apply and draw something

 

g_p2DTex->SetResource(textureB);

//apply and draw something

 

is that moving "textureB" data where "textureA" data is inside the GPU or just changing pointers?


HLSL d3dcompiler_47 problems

31 January 2015 - 07:07 PM

Just wana say that I just discovered that using length(), distance() and "/" division operator  is a bad idea, using dot() and pow() is faster and more accurate. Why is the compiler not optimizing that?

 

to get the length of a vector "v"

l = pow(dot(v,v),0.5f);

if you need to divide a position by the length of "v"

p*pow(dot(v,v),-0.5f) 

XAudio2 lose volume control

21 November 2014 - 03:25 PM

In my laptop I have a physical key that controls the master volume of windows 7

when I launch my app that uses XAudio2, the key no longer works

anyone knows how to fix this?

 

I already know that XAudio2 API has functions that can control its volume but I still want the volume keys to work


math problem

19 November 2014 - 09:20 AM

you have two towers 

tower one has "x" numbers of levels

tower two has "y" numbers of levels

there can only be one man in each tower

you cannot put the men in the same level

how many configurations can you make, not knowing which tower has more levels

 

this could be homework, who knows, don't kill this because of that, it's just an interesting problem laugh.png

 

In the end you have "n" number of towers each with an unknown number of levels

there can only be one man in each tower

you cannot put men in the same level

and again how many configurations can you make, without organizing the towers by the number of levels 


problem prime time

18 November 2014 - 06:20 AM

A man has a bag full of balls

the number of balls inside the bag is unknown

each ball is marked with a different number

the number is represented in binary

he tells me that there are two different special balls inside the bag, ball "a" and ball "b"

I take one ball out of the bag, ball "c" and give it to him

he tells me

that if ball "c" number is equal to ball "a" he gives me a million dollars

but  if ball "c" number is equal to ball "b" I have to give him a million dollars

he knows and tells me

that ball "a" binary number starts with two off bits, 00XXXXX..... and

that ball "b" binary number starts with one off bit , 0XXXXXX.....

now he takes a look at ball "c"  and tells me that it's binary number starts with one off bit , 0XXXXXX.....

what is the probability of winning and losing?


PARTNERS