Ludovic 'Archivist'
But is C++/CLR cross platform?
But it also is quite convoluted and some bits of it may not be (mainly pure C++ bits)
Mar!o
Okay
Daniele
https://prnt.sc/q8g99j
looks like the biggest gain is in memory
Mar!o
Yeah
Daniele
cpu seems almost the same, but memory is like 10 times better for C++
Daniele
the game could run on potato PCs
Mar!o
cpu seems almost the same, but memory is like 10 times better for C++
But C# has garbage collection - which can be good. I just prefer C# because I never want to write something like this again: https://prnt.sc/q8ge1a
Mar!o
oh my god what is this
A small part of my current engines rendering code :(
Ludovic 'Archivist'
But C# has garbage collection - which can be good. I just prefer C# because I never want to write something like this again: https://prnt.sc/q8ge1a
I see a lot of refactoring to be done here if you ask me. I think you could make that code quite clearer
Mar!o
I see a lot of refactoring to be done here if you ask me. I think you could make that code quite clearer
Yeah you are right. I only opened in notepad++ visual studio gets it done very well
Ludovic 'Archivist'
Yeah you are right. I only opened in notepad++ visual studio gets it done very well
I meant as in using language features to rewrite it clearer, not as in cosmetic indentations
Mar!o
Just by the way is here anybody who is familiar with baked radiosity?
Ludovic 'Archivist'
https://refactoring.guru/design-patterns/facade
Haha lol no that will kill optimization
Mar!o
I meant as in using language features to rewrite it clearer, not as in cosmetic indentations
Oh I see sry. Yeah thats why Im rewriting it I wrote it fast and ugly for a school project :/
Anonymous
Haha lol no that will kill optimization
It'll make code cleaner
Anonymous
How old are you if that is not too personal?
Don't you mind doing this in #ot chat?
Ludovic 'Archivist'
It'll make code cleaner
For videogames, you don't want that at the cost of speed
Mar!o
How old are you if that is not too personal?
It's okay I'm 18. (Almost)
Ludovic 'Archivist'
It'll make code cleaner
You will always find me quite opposed to Go4 design patterns as they are more often than needed antipatterns rather than good practices
Ludovic 'Archivist'
And you if I may ask :)
25, no longer in videogames tho, I am in database development since 5 years ago
Ludovic 'Archivist'
But the industry and goals are very similar, optimized code is the goal
Anonymous
#ot
Ludovic 'Archivist'
#ot
Not sure if very exactly #ot since it is mostly still about the industry around C++ tho
Anonymous
Not sure if very exactly #ot since it is mostly still about the industry around C++ tho
You are talking about your experience and "how old are you" stuff, not the C++
Anonymous
It's a personal conversation which can be placed in #ot char or private messages
Mar!o
What does ot even mean?
Ludovic 'Archivist'
What kind of games did you develop?
I worked mostly in game design for a game with an engine made by a colleague. The engine had multiple iterations made in C++03, which is still (and sadly) the heart of the C++ in most companies, as switching towards more moderns iterations of the language requires a whole lot of training
Mar!o
Offtop
Thanks
Mar!o
Thats awful
Ludovic 'Archivist'
Jesus cxx03
I have multiple colleagues working on migrating codebases from C to C++11 and C++03 to C++17, both migrations are very complex mostly due to the sheer amount of changes in the language to learn and due to people not using the <algorithm> library
Austin-sama
Derek please ask me in a group chat I'm in before pming me thnx
Austin-sama
What would you like?
Austin-sama
Nothing much. Just him saying hello and I get too many pms so I was just asking what he wanted here
Ilya
I mean, can't read in array?
You must do it one by one element, this is not Fortran, so no, int an array at once is not possible
Ludovic 'Archivist'
C++11 is very easy to migrate to
It depends from where and what level of idiomatic c++11 you expect, as well as the scale of the project
Ludovic 'Archivist'
C++11 is very easy to migrate to
It is indeed very easy if you do not migrate from plain ANSI C a codebase of a dozen million lines of code
Ludovic 'Archivist'
From C++ 98 and 03
I would say it is relatively easy except for migrating old tmp tricks
Ilya
I would say it is relatively easy except for migrating old tmp tricks
well migrating isnever easy yes, but there is little to learn in C++11 that is very hard to learn
Anonymous
Hi all) I need your help. A man trying to join to the group. But it is being futile. How can he join to the group
Anonymous
klimi
send his id
Anonymous
now
Mar!o
So Ive made a +- list for C# vs C++ for my new engine. Any missing points?
Fede_333
I use visualstudio on linux
Fede_333
And i dont grave amy issues
Ilya
not me
I see it, just realised it too late
Anonymous
send his id
may I send in the morning?
Anonymous
I use visualstudio on linux
You are the genius! You use the technology that doesn't exist
Anonymous
There is no Visual Studio in the Linux
Anonymous
visual studio code ...
It's not Visual Studio
Fede_333
That Is not true
klimi
visual studio code ...
those are like apples and pears
Roxifλsz 🇱🇹
Fede_333
Ok but It Is literally the same
Stanislav
It's not Visual Studio
so, visual studio for mac is not visual studio :) it's renamed xamarin studio
Anonymous
Ok but It Is literally the same
Looooooool It is literally NOT the same
Fede_333
Doesn't change anything
Ilya
So Ive made a +- list for C# vs C++ for my new engine. Any missing points?
C# is not for online real time games because it ues GC, and has unpredictable timing. It can stop at any moment for gothering garbage.