# Offload LOS/map redraw to GPU if available?

**URL:** <https://discourse.cataclysmdda.org/t/offload-los-map-redraw-to-gpu-if-available/10077>\
**Category:** The Drawing Board\
**Created:** [July 15, 2015, 10:41pm UTC](https://discourse.cataclysmdda.org/t/offload-los-map-redraw-to-gpu-if-available/10077 "2015-07-15T22:41:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![karlnp](https://avatars.discourse-cdn.com/v4/letter/k/f08c70/32.png) [@karlnp](https://discourse.cataclysmdda.org/u/karlnp)\
**Post date:** [July 15, 2015, 10:41pm UTC](https://discourse.cataclysmdda.org/t/offload-los-map-redraw-to-gpu-if-available/10077/1 "2015-07-15T22:41:02Z")

</div>

I’m thinking about using CUDA/something similar for ATI cards to parallelize some of our weightier calculations without changing the singly-threaded nature of the code. Mite b cool, as people say.

---

<div class="post-metadata">

**Author:** ![kevin.granade](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/kevin.granade/32/1316_2.png) [@kevin.granade](https://discourse.cataclysmdda.org/u/kevin.granade)\
**Post date:** [July 16, 2015, 3:05am UTC](https://discourse.cataclysmdda.org/t/offload-los-map-redraw-to-gpu-if-available/10077/2 "2015-07-16T03:05:20Z")

</div>

GPU offloading is always multi-threaded, that’s the point. As with CPU multi threading, the systems that will benefit are precisely the systems that don’t need the help.  
If you want to play around with it knock yourself out, but keep in mind it will never be mandatory, so it won’t enable any new features.

---

<div class="post-metadata">

**Author:** ![karlnp](https://avatars.discourse-cdn.com/v4/letter/k/f08c70/32.png) [@karlnp](https://discourse.cataclysmdda.org/u/karlnp)\
**Post date:** [July 16, 2015, 9:42pm UTC](https://discourse.cataclysmdda.org/t/offload-los-map-redraw-to-gpu-if-available/10077/3 "2015-07-16T21:42:42Z")

</div>

so, related, here’s the static analysis results from CPPCheck:

Scan  
Path selected: C:/Users/Karl/ClionProjects/Cataclysm-DDA/src  
Number of files scanned: 145  
Scan duration: 12 minutes and 26 seconds  
Statistics  
Errors: 95  
Warnings: 229  
Style warnings: 211  
Portability warnings: 0  
Performance warnings: 268  
Information messages: 234

Rolling up my sleeves and starting in on it tonight.

---

<div class="post-metadata">

**Author:** ![kevin.granade](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/kevin.granade/32/1316_2.png) [@kevin.granade](https://discourse.cataclysmdda.org/u/kevin.granade)\
**Post date:** [July 17, 2015, 2:03am UTC](https://discourse.cataclysmdda.org/t/offload-los-map-redraw-to-gpu-if-available/10077/4 "2015-07-17T02:03:13Z")

</div>

That’s not nearly as many as I expected, bon chance!
