Jump to content

View more

Image of the Day

雑魚は多めにして、爽快感重視にしつつ・・・(´・ω・`)
早いとこ、ベースを作って、完成にもっていかないとね。
タイトルもまだ迷ってるだよなぁ。 
#indiedev  #indiegame #screenshotsaturday https://t.co/IwVbswGrhe
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Wondering why everything is running so slow...

4: Adsense
  • You cannot reply to this topic
2 replies to this topic

#1 Migi0027 (肉コーダ)   Members   

4565
Like
0Likes
Like

Posted 09 June 2014 - 04:59 PM

So I was casually tweaking some stuff, and suddely the performance dropped like hell, so i decided to look into it, and this popped up:

 

287mck1.png 1526087.jpg

 

Anyone else had stuff go that wrong?

 

-MIGI0027


FastCall22: "I want to make the distinction that my laptop is a whore-box that connects to different network"

Blog about... stuff (GDNet, WordPress): www.gamedev.net/blog/1882-the-cuboid-zone/cuboidzone.wordpress.com/


#2 ferrous   Members   

6028
Like
1Likes
Like

Posted 13 June 2014 - 12:21 PM

Sort of, I had things just not work, and I tracked it down to this:

pD2DGaussianBlurEffect->SetValue(D2D1_GAUSSIANBLUR_PROP_STANDARD_DEVIATION, 3);

Seems simple enough right?  Nothing scary there.  Well silly me not checking HRESULTS for this sample code.  You see, that function is a generic set property function that can take anything.  And you see, that's supposed to be a floating point number.  Rather than do the sane thing, and just not set the value and keep the old one, the effect gets flagged as invalid, which causes it to not render.

 

The true moral of the story is to always check your HRESULTs, but it still irks me how that operates.



#3 MaxDZ8   Members   

5008
Like
0Likes
Like

Posted 19 June 2014 - 06:53 AM

Uhmph.


Previously "Krohm"