此篇文章主要讲一些小技巧,针对前面转载的D3D9 GPU Hacks,我们可以做的一些优化。在做延迟渲染或者其它需要深度的地方使用INTZ格式的纹理,这样可以直接对纹理进行操作,节省了显存和带宽,这样即使在前向渲染的时候也可以获取深度,有了深度信息我们就可以做很多效果,如水的柔边,水边泡沫,景深等效...
分类:
其他好文 时间:
2015-04-16 23:36:33
阅读次数:
353
D3D9 GPU HacksI’ve been trying to catch up what hacks GPU vendors have exposed in Direct3D9, and turns out there’s a lot of them!If you know more hack...
分类:
其他好文 时间:
2015-04-16 21:24:03
阅读次数:
293
iOS 7 Development Tips, Tricks & HacksSeptember 18, 2013Like with any new iOS version there are a bunch of new tricks and hacks to work out. Here are ...
分类:
移动开发 时间:
2015-03-19 21:51:53
阅读次数:
193
http://www.catonmat.net/blog/low-level-bit-hacks-you-absolutely-must-know/Bit Hack #6. Turn off the rightmost 1-bit.y = x & (x-1)Bit Hack #7. Isolate ...
分类:
其他好文 时间:
2015-03-14 12:22:59
阅读次数:
209
In our modern world, everyone is looking to do things faster, better, smarter, so it‘s no wonder that productivity hacks are incredibly popular. But the truth is that there‘s nothing new under the ...
分类:
其他好文 时间:
2015-02-22 17:25:45
阅读次数:
195
题目大意:公司销售商品的时候在考虑做不做广告,给你不做广告的预期效益、做广告的预期
效益和做广告的花销。为了效益问题,问:是否该做广告。做广告就输出"advertise",不做广
告就输出"do not advertise",做不做都一样就输出"does not matter"。
思路:计算不做广告的效益和左广告的效益-做广告的花销哪个高,然后根据情况输出不同结果。...
分类:
其他好文 时间:
2015-01-31 00:32:09
阅读次数:
208
Android.Hacks读书笔记01 #1#权重布局之解析: LinearLayout ’s android:weightSum LinearLayout ’s child android:layout_weight 兼容适配的时候,比较方便: Defines the max...
分类:
移动开发 时间:
2015-01-26 20:58:50
阅读次数:
278
https://github.com/fex-team/GMU/wiki/%E8%BD%AC%E5%B1%8F%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88$.matchMediahttps://hacks.mozilla.org/2012/06/using-window-...
分类:
其他好文 时间:
2014-11-20 20:18:55
阅读次数:
140
Nasty Hacks
Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 2299 Accepted Submission(s): 1816
Problem Description
You are the ...
分类:
其他好文 时间:
2014-11-03 21:01:01
阅读次数:
160