# The performance difference between C and C++ versions

**URL:** <https://qa.fmod.com/t/the-performance-difference-between-c-and-c-versions/19339>\
**Category:** FMOD Engine\
**Tags:** cpp\
**Created:** [September 29, 2022, 10:13am UTC](https://qa.fmod.com/t/the-performance-difference-between-c-and-c-versions/19339 "2022-09-29T10:13:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jiyongman](https://avatars.discourse-cdn.com/v4/letter/j/ebca7d/32.png) [@jiyongman](https://qa.fmod.com/u/jiyongman)\
**Post date:** [September 29, 2022, 10:13am UTC](https://qa.fmod.com/t/the-performance-difference-between-c-and-c-versions/19339/1 "2022-09-29T10:13:53Z")

</div>

I personally prefer the C version for various reasons.  
It’s mainly because all the older projects were written with it so it’s easy to maintain them, and often I copy previous implementations to newer projects.

I know it wouldn’t be noticeable, but I also believed the C version was faster than the C++ version.  
As we know and see from the screenshot below, C is more performant than C++.  
Also, I thought FMOD’s C++ version was a wrapper for the C version.

 ![perf](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/7/7c5f42f211ed18c43154e8a3375e9798d8a143cb.png)

Is the C version really faster even if it’s negligible?

---

<div class="post-metadata">

**Author:** ![mathew](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/mathew/32/431_2.png) [@mathew](https://qa.fmod.com/u/mathew)\
**Post date:** [September 29, 2022, 10:39pm UTC](https://qa.fmod.com/t/the-performance-difference-between-c-and-c-versions/19339/2 "2022-09-29T22:39:58Z")

</div>

Internally FMOD is written in C++ and the C interface is provided as a wrapper. So, when you call one of the C APIs, internally this just calls the C++ equivalent. Performance should be basically the same, maybe very slightly more expensive for C since it has an additional function call.

---

<div class="post-metadata">

**Author:** ![jiyongman](https://avatars.discourse-cdn.com/v4/letter/j/ebca7d/32.png) [@jiyongman](https://qa.fmod.com/u/jiyongman)\
**Post date:** [September 30, 2022, 6:57am UTC](https://qa.fmod.com/t/the-performance-difference-between-c-and-c-versions/19339/3 "2022-09-30T06:57:45Z")

</div>

Oh, it was the opposite, haha.  
Thank you!
