CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: noobofcpp

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Re: std::vector::emplace_back vs std::vector::push_back

    thanks for the explaination sir. i think i understand
  2. Re: std::vector::emplace_back vs std::vector::push_back

    after you asked to measure execution time, i did test with std::chrono::steady_clock::now() on it and emplace_back is slightly faster. Sorry didnt thought to test it before. So the emplace_back is...
  3. [SOLVED]std::vector::emplace_back vs std::vector::push_back

    Well i just figured out there's a emplace_back method than does same thing as push_back after 4 years messing around with c++. Which one is faster or which one should I use. Currently i use...
  4. Replies
    16
    Views
    1,836

    Re: A question about multi threading.

    I understand. Thank you for knowledge you give me.
  5. Replies
    16
    Views
    1,836

    Re: A question about multi threading.

    Hyper threading is one of my CPU features, so i think yes. There are 8 CPU graph on task manager.
  6. Replies
    16
    Views
    1,836

    Re: A question about multi threading.

    with four threads it took 0.0625277 seconds while 8 threads it took 0.0441792 seconds35617
  7. Replies
    16
    Views
    1,836

    Re: A question about multi threading.

    @wolle. Time taken to render with one thread is 0.133174 seconds while the multi threaded one is 0.0426739 seconds. What about Open MP? According to this post...
  8. Replies
    16
    Views
    1,836

    Re: A question about multi threading.

    @wolle my cpu is Intel Core i7 6700hq. It has 4 cores
  9. Replies
    16
    Views
    1,836

    Re: A question about multi threading.

    Thank you 2kaud
  10. Replies
    16
    Views
    1,836

    Re: A question about multi threading.

    @2kaud can you show me example of variable locking
  11. Replies
    16
    Views
    1,836

    Re: A question about multi threading.

    @2kaud. Thank you boss
  12. Replies
    16
    Views
    1,836

    A question about multi threading.

    I just wrote a simple ray tracer with multi threading. I divide the rendering process into 8 threads. The result is 3.5 times faster than using single thread.My question is, is it correct use of...
  13. Re: std::vector suddenly throw read access violation(Corrupted)

    you're right mr wolle. That's actualy source of the problem. The vector object. distracted me from the the actual problem. Ahh how stupid am I. Thank you everyone for your time and effort to reply...
  14. Re: std::vector suddenly throw read access violation(Corrupted)

    The debugger show the frameIndex value is 0, while the mMSAAFramebuffers vector size is 2. I'm sure the problem is not that. It throws read access violation even i'm trying to print out the...
  15. [RESOLVED] std::vector suddenly throw read access violation(Corrupted)

    I'm completely clueless what's going on here.Why it keep throwing read access violation.

    35397
    Here's the header file.


    #pragma once

    #include "Renderer\VulkanApplication.h"
    #include...
  16. Why is C++ STL implementation is written like this

    Why they use some kind of crazy naming convension and lot of underscores?


    // constructors
    vector_impl(_Mytype_t% _Right)
    { // construct by copying _Right
    for (size_type _Idx =...
  17. Re: Different behavior between Debug and Release build

    Thank you Mr VictorN it turns out i was mixing Debug and Release DLL
  18. [RESOLVED] Different behavior between Debug and Release build

    I recently encoutered weird situation where in Debug build the program got access violation at....while in Release build it runs without problem.How this such condition happens.Could be compiler bug...
  19. glActiveTexture not working

    I only got first texture show up.

    What's wrong with this my code,I can't find where's the mistake.

    int main()
    {
    sf::ContextSettings settings;
    settings.majorVersion = 4;...
  20. Re: Exception thrown at 0x00000000 when using DLL.

    Thank you so much 2kaud your help gave me hint I need to do some opengl initialization procedure for the DLL and now it's work.
  21. Re: Exception thrown at 0x00000000 when using DLL.

    DLL project template.
  22. Re: Exception thrown at 0x00000000 when using DLL.

    if (vertexFile)
    {
    while (getline(vertexFile, inputVertexCode))
    {
    oivc << inputVertexCode << endl;
    }
    vertexCode_str = oivc.str();
    const char* vertexCode = vertexCode_str.c_str();...
  23. [RESOLVED] Exception thrown at 0x00000000 when using DLL.

    I wrote a function that compile vertex shader and fragment shader of GLSL and return a shader program ID.If I put that function code directly a program it works fine.The problem is when I compile...
  24. [RESOLVED] Does __asm keyword is ISO standard?

    Injecting assembly code in c++ works fine on MSVC 15.5.2 but my TDM GCC Compiler gave undeclared in this scope and some other errors.
  25. [RESOLVED] Why we cannot put class template member function definition in cpp file.

    If I class template member function definition in cpp file,I got bunch of linker error.But it works fine if the definition is in the header file along with the class template.Why is it like that?.Did...
Results 1 to 25 of 48
Page 1 of 2 1 2


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)