Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

PVS-Studio: Critical errors in CryEngine V code

47 views
Skip to first unread message

Andrey Karpov

unread,
Apr 4, 2017, 3:43:39 AM4/4/17
to
In May 2016, German game-development company Crytek made the, decision to upload the source code of their game engine, 'CryEngine V' to GitHub. The project is in active development, which leads to a large number of errors in the code. We have already checked the project with PVS-Studio for Windows, and now we can also analyze it using PVS-Studio for Linux. There was enough material for an article with the description of only crucial errors.

Article: https://www.viva64.com/en/b/0495/

Rick C. Hodgin

unread,
Apr 4, 2017, 10:07:37 AM4/4/17
to
"Critical errors"

#1 It's code for a video game engine, not a life support system.

#2 Does the game run? A critical error would prevent it from running.
A bug would prevent it from running corre in certain cases.

#3 How much money do you expect to make off this post on comp.lang.c++ ?
And how much knowledge do you hope to impart to people, to increase their
developer skills?

Thank you,
Rick C. Hodgin

Chris M. Thomasson

unread,
Apr 4, 2017, 6:24:44 PM4/4/17
to
On 4/4/2017 7:07 AM, Rick C. Hodgin wrote:
> "Critical errors"
>
> #1 It's code for a video game engine, not a life support system.
>
> #2 Does the game run? A critical error would prevent it from running.
> A bug would prevent it from running corre in certain cases.

Heck, what about this approximation for sqrt in a game:

http://forums.parallax.com/discussion/147522/dog-leg-hypotenuse-approximation

Better than using a real sqrt function! ;^)

Gareth Owen

unread,
Apr 5, 2017, 3:26:13 AM4/5/17
to
Andrey Karpov <karpo...@gmail.com> writes:

> There was enough material for an article with the description of only
> crucial errors.
>
> Article: https://www.viva64.com/en/b/0495/

You have a weird idea of what constitutes a "crucial error". I'd hate
to see the list of trivial ones.

asetof...@gmail.com

unread,
Apr 5, 2017, 11:32:28 AM4/5/17
to
Float Point numbers operator compare has to use epsilon...
For example
double x;

....
No if(x==1.0) etc
Yes if(absfordouble(x-1.0)<0.0001) etc

Bonita Montero

unread,
Apr 5, 2017, 11:48:45 AM4/5/17
to
> Heck, what about this approximation for sqrt in a game:

SSE includes RSQRTSS/PS for the usual 3D-graphis purpose.

--
http://facebook.com/bonita.montero/
0 new messages