Page 1 of 1

Random curios statistics

Posted: Sat Jan 06, 2018 8:48 pm
by Dade
Some random curios statistics about the source code.

LuxCore code: 203,343 total lines of C++ and 22,120 total lines of OpenCL C

Classic Lux code: 169,287 total lines of C++

It is a bit unexpected, I would have bet on classic Lux being larger.

Files with more than 1000 lines in LuxCore:

Code: Select all

   21316 ./src/slg/samplers/soboldata.cpp
    9372 ./include/slg/lights/data/ArHosekSkyModelData.h
    1890 ./src/slg/engines/pathoclbase/pathoclbasethread.cpp
    1848 ./src/slg/textures/blender_noiselib.cpp
    1784 ./src/slg/engines/pathoclbase/compiletextures.cpp
    1511 ./src/luxrays/utils/ply/rply.cpp
    1473 ./src/slg/film/film.cpp
    1361 ./src/luxcore/pyluxcore.cpp
    1243 ./src/slg/textures/blender_texture.cpp
    1071 ./src/slg/imagemap/imagemap.cpp
    1035 ./include/luxcore/luxcore.h
    1009 ./src/slg/film/imagepipeline/plugins/cameraresponse.cpp
Files with more than 1000 lines in classic Lux:

Code: Select all

   32195 ./core/external/cimg.h
    9364 ./lights/data/ArHosekSkyModelData.h
    3747 ./renderers/luxcorerenderer.cpp
    3470 ./core/film.cpp
    3121 ./qtgui/mainwindow.cpp
    2493 ./luxlex.cpp
    2437 ./luxparse.cpp
    2185 ./integrators/bidirectional.cpp
    2147 ./film/fleximage.cpp
    1838 ./python/pycontext.h
    1511 ./ui_luxrender.h
    1501 ./core/context.cpp
    1417 ./core/paramset.cpp
    1384 ./core/renderfarm.cpp
    1329 ./core/api.cpp
    1280 ./core/mipmap.h
    1210 ./server/renderserver.cpp
    1181 ./shapes/mesh.cpp
    1136 ./core/photonmap.cpp
    1023 ./shapes/meshmicrodisplacementtriangle.cpp

Re: Random curios statistics

Posted: Sat Jan 06, 2018 9:06 pm
by B.Y.O.B.
21316 ./src/slg/samplers/soboldata.cpp
9372 ./include/slg/lights/data/ArHosekSkyModelData.h
Not sure if it makes much sense to include data files in the statistic, it's a bit like counting the pixels in an image used on the website or so ;)
Dade wrote: Sat Jan 06, 2018 8:48 pm It is a bit unexpected, I would have bet on classic Lux being larger.
Yes, surprising.