User forums > Nightly builds

The 24 April 2022 build (12802) is out.

<< < (5/6) > >>

Khram:
Without GDB, and only full optimization for speed. OS in Windows-11.

BlueHazzard:
So have you tried to set the environment variable as described in https://stackoverflow.com/questions/27380443/why-is-gdb-so-slow-in-windows ?
Have you tried gdb from the console, without codeblocks? (it should not make any difference)

Other things that can help:
Not more than 4 break points
Do not debug to libraries with debug symbols (this should only slow down initial startup, but not runtime)

try out cdb instead of gdb

I do not know the kind of bug you are huntig, but you can also try to use printf instead of gdb,
if you search for performance bugs, you can try https://github.com/wolfpld/tracy

ecc...

Khram:
Thank you. Yes, I have debugging done exclusively with cprintf and in OpenGL on two graphics windows, asynchronously. No GDB or CDB debuggers are fundamentally not used. That is, the calculations themselves, as if in the background, and regardless of this, the visualization of two different processes of wave hydrodynamics and hydromechanics of the ship.

What happens: inside CodeBlocks, seven cores are evenly loaded at 45%, the eighth core at 100%. Without CodeBlocks - the experiment is much faster and all eight cores are loaded evenly by about 40%, and, accordingly, the interactive control is more responsive to external control commands.

Thanks for the link: https://github.com/wolfpld/tracy - really very interesting

Благодарю. Да у меня отладка выполняется исключительно с помощью cprintf и в OpenGL на двух графических окнах, асинхронно.  Никакие отладчики GDB или CDB принципиально не используются.  То есть, расчеты сами по себе, как бы в фоновом режиме, и независимо от этого визуализация двух различных процессов гидродинамики волн и гидромеханики корабля.

Что получается: внутри CodeBlocks равномерно загружаются семь ядер на 45%, восьмое ядро на 100%. Без CodeBlocks - эксперимент проходит значительно быстрее и все восемь ядер загружаются равномерно примерно на 40%, и, соответственно, интерактивное управление получается более отзывчивым на внешние команды управления.

Спасибо за ссылку: https://github.com/wolfpld/tracy - реально очень интересно

Khram:
The general impression is that CodeBlocks itself launches a debugger, such as GDB, which then affects the user program running inside the shell.

Общее впечатление такое, что сам CodeBlocks, запускает отладчик, типа GDB, который затем влияет на исполняемую внутри оболочки пользовательскую программу.

BlueHazzard:

--- Quote ---The general impression is that CodeBlocks itself launches a debugger, such as GDB, which then affects the user program running inside the shell.
--- End quote ---
Codeblocks starts the application trough gdb if you run it in debug mode (Red Arrow in tool bar, or Debug->Start)
If you run your application with the green arrow in the toolbar or Build->Run no debugger is called.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version