Custom Memory Arena in C++

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 พ.ค. 2024
  • Recently I've been writing a small C++ container library and decided to use a custom memory allocator. This video is aimed to give an overview on how to implement a memory arenas in C++. Keep in mind that this approach is not bullet proof, and there are many other, probably more efficient and accurate solutions on how to do this. But anyway, I'm happy to share mine :)
    The implementation of memory arena can be found here: github.com/isnastish/mylib/bl...
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 7

  • @BrontideHD
    @BrontideHD หลายเดือนก่อน +1

    thanks for taking the time to explain and run through everything :D very interesting

  • @isaisanz77
    @isaisanz77 หลายเดือนก่อน +1

    great work keep up the vids! you are brilliant

  • @Pedro-jj7gp
    @Pedro-jj7gp หลายเดือนก่อน +1

    Very cool video! Do you think you could make some videos on win32 & opengl initialization (windows, events, drawing, etc.)?

    • @isnastish
      @isnastish  หลายเดือนก่อน

      Definitely, I will put it on my todo list. In fact, I have done that already, it's not documented well, but this project is exactly what you're looking for: github.com/isnastish/EventDrivenInputSystem. It is a prototype of even driven input system which supports mouse/keyboard and a gamepad. It uses OpenGL for testing the input (moving some geometrical primitives in a window). Just run build.bat file and that will produce an executable inside a build folder. I will dedicate some time and document it better in the future.

    • @Pedro-jj7gp
      @Pedro-jj7gp หลายเดือนก่อน

      @@isnastish Awesome, thanks!
      Did you maybe modify the project? The build script gives me these couple errors:
      platform.cpp
      c1xx: fatal error C1083: Cannot open source file: '..\platform_abstraction_layer\code\platform.cpp': No such file or directory
      w32_main.cpp
      c1xx: fatal error C1083: Cannot open source file: '..\platform_abstraction_layer\code\w32_main.cpp': No such file or directory

  • @ThePandaGuitar
    @ThePandaGuitar 2 หลายเดือนก่อน +1

    nice video! subbed. plz do more golang

    • @isnastish
      @isnastish  2 หลายเดือนก่อน

      Thank you. I will try my best to find time for Golang as well.