Jump to content

Roland

Members
  • Posts

    2,953
  • Joined

  • Last visited

Posts posted by Roland

  1. The Actor class is included as any other Leadwerks class. 
     

    C:\Program Files (x86)\Steam\steamapps\common\Leadwerks\Include\Classes\Actor.h

     

    There is already a C++ setup for you when you create a project. Just open \Projects\Windows\"projectname".sln in Visual Studio and there you go

  2. Updating to VS 2017 goes fine according to your instructions. Josh, now when you are at it, could you make the changes suggested below to get rid of warnings. A good project should compile without warning!

    Release
    cl : Command line warning D9030: '/Gm' is incompatible with multiprocessing; ignoring /MP switch
     Remove <MinimalRebuild>true</MinimalRebuild> from <CLCompile> section
    -------------------------------------
    LINK : /LTCG specified but no code generation required; remove /LTCG from the link command line to improve linker performance
     Add <LinkTimeCodeGeneration>Default</LinkTimeCodeGeneration> to <LINK> section
    -------------------------------------
    Debug Working Directory is wrong.
    Change $(SolutionDir)\..\..\..  to  $(SolutionDir)..\..
    -------------------------------------
    Debug
    1>libcryptoMT.lib(aes_cbc.obj) : warning LNK4099: PDB 'ossl_static.pdb' was not found with 'libcryptoMT.lib(aes_cbc.obj)' ....
    1>libcryptoMT.lib(aes_core.obj) : warning LNK4099: PDB 'ossl_static.pdb' was not found with 'libcryptoMT.lib(aes_core.obj)'....
    ...
    ...
    etc ...
    etc ...
     
      Add /ignore:4099 to <LINK> section, line <AdditionalOptions>
    -------------------------------------
     
    Debug Working Directory is wrong.
    Change $(SolutionDir)\..\..\..  to  $(SolutionDir)..\..
    -------------------------------------
     
    Thanks
     

     

    • Like 1
    • Thanks 1
  3. The reason why remove is slow is that all non-removed item are shifted towards the front of the list while the container keeps it's size. After the operation remove returns an iterator past the last non removed item. Removed items are actually not removed​ but just marked as removed. The idea is to bring down the amount of memory allocations and get a continuous vector. You can also use remove to remove all items of a certain value from the vector

     

    Here's some notes on iteration on a vector

    http://fastcpp.blogspot.se/2011/03/fast-iteration-over-stl-vector-elements.html?m=1

     

    There are quite a few types of containers, each one suited for different situations and with their drawbacks in other situations. There is no "the fastest" I'm afraid.

×
×
  • Create New...