1
General discussions / Re: C#/C++ build comparison
« on: March 07, 2015, 08:16:35 pm »It is not. I misread your code and removed my post when I realized (after about 20sec).
No worries, I have done the same.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
It is not. I misread your code and removed my post when I realized (after about 20sec).
Without seeing the code it's all just random guessing.. And my crystal ball is not being helpful atm.
If you want to see where time is spent, try a profiler...
So you're comparing SFML to itself? What's the point? If it's to measure the overhead of the C# -> CSFML -> SFML bridge, I can tell you for sure, without any benchmark, that it is negligible compared to the overhead of the draw call (mostly spent in the OpenGL driver).
As I see it, the test is flawed in that measuring frames per second is a bad metric. It probably has less to do with the programming language used than whether or not vsync (or some other frame rate limiting mechanism) is in play, and the quality/performance of your graphics drivers and their OpenGL implementation, than anything else.
And a measured 1% difference is not something I'd call significant regardless of what you measured - it's likely in the statistical noise and likely to fluctuate from run to run.
But it looks like you're trying to say (even if this is not your intention): "Aha! I finally proved that C++ is not faster than C#!" ... without even posting the code of your benchmarks.
Then your title is severely misleading. Even if you claim to only be comparing builds, the test is still extremely flawed.
How about posting the code for both C# and C++ implementations before drawing conclusions?
M.b. you are just bad C++ programmer? =)
Really? You are comparing two languages by how many frames they render in a set period of time? Just.....QuoteDoes this kind of result make sense?
No, not at all because you can't even statistically compare languages this way.
1>sfml.lib(RenderTarget.obj) : error LNK2001: unresolved external symbol __imp____glewBlendFuncSeparateEXT
1>sfml.lib(RenderTarget.obj) : error LNK2001: unresolved external symbol __imp____GLEW_EXT_blend_func_separate
1>sfml.lib(Shader.obj) : error LNK2001: unresolved external symbol __imp____glewActiveTextureARB
1>sfml.lib(Shader.obj) : error LNK2001: unresolved external symbol __imp____glewAttachObjectARB
1>sfml.lib(Shader.obj) : error LNK2001: unresolved external symbol __imp____glewCompileShaderARB
1>sfml.lib(Shader.obj) : error LNK2001: unresolved external symbol __imp____glewCreateProgramObjectARB
1>sfml.lib(Shader.obj) : error LNK2001: unresolved external symbol __imp____glewCreateShaderObjectARB
1>sfml.lib(Shader.obj) : error LNK2001: unresolved external symbol __imp____glewDeleteObjectARB
1>sfml.lib(Shader.obj) : error LNK2001: unresolved external symbol __imp____glewGetHandleARB
1>sfml.lib(Shader.obj) : error LNK2001: unresolved external symbol __imp____glewGetInfoLogARB
1>sfml.lib(Shader.obj) : error LNK2001: unresolved external symbol __imp____glewGetObjectParameterivARB
1>sfml.lib(Shader.obj) : error LNK2001: unresolved external symbol __imp____glewGetUniformLocationARB
1>sfml.lib(Shader.obj) : error LNK2001: unresolved external symbol __imp____glewLinkProgramARB
1>sfml.lib(Shader.obj) : error LNK2001: unresolved external symbol __imp____glewShaderSourceARB
1>sfml.lib(Shader.obj) : error LNK2001: unresolved external symbol __imp____glewUniform1fARB
1>sfml.lib(Shader.obj) : error LNK2001: unresolved external symbol __imp____glewUniform1iARB
1>sfml.lib(Shader.obj) : error LNK2001: unresolved external symbol __imp____glewUniform2fARB
1>sfml.lib(Shader.obj) : error LNK2001: unresolved external symbol __imp____glewUniform3fARB
1>sfml.lib(Shader.obj) : error LNK2001: unresolved external symbol __imp____glewUniform4fARB
1>sfml.lib(Shader.obj) : error LNK2001: unresolved external symbol __imp____glewUniformMatrix4fvARB
1>sfml.lib(Shader.obj) : error LNK2001: unresolved external symbol __imp____glewUseProgramObjectARB
1>sfml.lib(Shader.obj) : error LNK2001: unresolved external symbol __imp____GLEW_ARB_fragment_shader
1>sfml.lib(Shader.obj) : error LNK2001: unresolved external symbol __imp____GLEW_ARB_shader_objects
1>sfml.lib(Shader.obj) : error LNK2001: unresolved external symbol __imp____GLEW_ARB_shading_language_100
1>sfml.lib(Shader.obj) : error LNK2001: unresolved external symbol __imp____GLEW_ARB_vertex_shader
1>sfml.lib(Texture.obj) : error LNK2001: unresolved external symbol __imp____GLEW_ARB_texture_non_power_of_two
1>sfml.lib(GLCheck.obj) : error LNK2019: unresolved external symbol __imp__glewInit referenced in function "void __cdecl sf::priv::ensureGlewInit(void)" (?ensureGlewInit@priv@sf@@YAXXZ)
1>sfml.lib(GLCheck.obj) : error LNK2019: unresolved external symbol __imp__glewGetErrorString referenced in function "void __cdecl sf::priv::ensureGlewInit(void)" (?ensureGlewInit@priv@sf@@YAXXZ)
1>sfml.lib(JoystickImpl.obj) : error LNK2019: unresolved external symbol __imp__joyGetPosEx@8 referenced in function "public: static bool __cdecl sf::priv::JoystickImpl::isConnected(unsigned int)" (?isConnected@JoystickImpl@priv@sf@@SA_NI@Z)
1>sfml.lib(JoystickImpl.obj) : error LNK2019: unresolved external symbol __imp__joyGetDevCapsW@12 referenced in function "public: bool __thiscall sf::priv::JoystickImpl::open(unsigned int)" (?open@JoystickImpl@priv@sf@@QAE_NI@Z)
1>..\..\..\..\Main\Libraries\Debug\x86\OasisMain.dll : fatal error LNK1120: 30 unresolved externals