Algodoo running at 2.7% realtime

If you have problems installing or running Algodoo, have found a bug or need in-game help - this is it!

Algodoo running at 2.7% realtime

Postby Bronie12345 » Fri Nov 27, 2009 8:21 am

i found a very annoying bug: Algodoo runs at 2.7% realtime with an empty scene...
because of this i already can't create stuff in algodoo, because i can't test them well...

the core where algodoo is running on is then (when i start algodoo) suddenly used 100%, while this used to be 1 or 2 %

no, i didn't used any compitability mode...

so, somehow, algodoo takes up all of the 2.66ghz core it is running on...
you guys know a way to fix?

things i tried to fix it (earlier times, it used to go away after a while, but now it doesn't):
reïnstall algodoo
delete the config files
fixed the windows register
reboot (yes, sometimes this fixes the bug, but now it doesn't)
reïnstalled theVC++ that came with the installer...

system specs:
CPU: Intel Core i7 920 "Bloomfield" @ 2.66ghz
Mainboard: AsRock X58 Deluxe
GPU: Asus Geforce GTX 260, based on nVidia Geforce GTX 260
all drivers are updated
Display: Acer L1716
OS: Windows 7 Ultimate build 7600, X64

program files' config file:
Code: Select all
// Default config.cfg shipped with Algodoo 5.47

Resources.shaders = false;

Scene.addWidget {
    minimized = false;
    pos = [0.0, 31.0];
    widgetID = "Toolbar";
};
Scene.addWidget {
    minimized = false;
    pos = [0.0, 70.0];
    widgetID = "SimControl";
};       
Scene.addWidget {
    minimized = false;
    pos = [0.0, 117.0];
    title = "Settings";
    widgetID = "EntityOptions"
};
Scene -> {
    Camera -> {
        smoothPan = true;
        smoothZoom = true;
    };
};


My Documents config file:
Code: Select all
// Generated by Algodoo v1.6.0

inclusive_range = (min, max)=>{min > max ? [] : {[min] ++ inclusive_range(min + 1, max)}};
SPH -> {
    kernelMultiplier = 0.635;
    incompressible = true;
    influence = 2.7;
    viscMultiplier = 1.0;
    solveT = 0.01;
    unilateral = true;
    lowMassCollisionRadiusFactor = 0.4;
    friction = 0.01;
    jitter = 0.0;
    sort = false;
    restitution = 0.0;
    maxNeighbors = 64;
    geomFieldOffset = 0.5;
    spikyKernel = true;
    geomFriction = 0.001;
    surfaceTension = 0.0;
    radius = 0.05;
    density = 1.0;
    solveIters = 1;
    minMassFactor = 3.0;
    nonPenetration = true;
    vaporizeTime = +inf;
    pressMultiplier = 1.0;
    specialPressure = true;
    solveConst = 1e+006;
    bucketSize = 2.0;
    geomMassMultiplier = 2.0;
    kernelNormalize = false;
    viscosity = 0.0;
    soundSpeed = 20.0;
    velocitySmoothing = false;
    geometryFields = true
};
math -> {
    max = (a, b)=>{a > b ? a : b};
    min = (a, b)=>{a < b ? a : b}
};
Sim -> {
    airFrictionQuadratic = 0.0;
    blockedContactSolver4N = false;
    skipDistance = 0.15;
    solvePreSortConstraints = true;
    blockedContactSolver3N = true;
    solver = "gs";
    blockedContactSolver2N = true;
    solveRegularizationFactor = 1.0;
    adHocSolver = false;
    cableMaxMassRation = 2.0;
    gravityStrength = 9.8;
    airSwitch = true;
    cableAdaptiveSlack = false;
    gravitySwitch = true;
    frequency = 100.0;
    blockedContactSolver2NF = false;
    cableMiliatryConstraint = false;
    solveConstant = 1e+008;
    useSkipLists = true;
    timeFactor = 1.0;
    mutipleContactEventPerPair = false;
    maxSpringStrength = 10.0;
    cables = true;
    cableDistanceConstraint = true;
    gravityAngleOffset = 0.0;
    solveConstCables = 1e+008;
    solverSOR = [1.0, 1.0, 1.0];
    solveIter = 30;
    solveTcontacts = 0.05;
    solveStiffIter = 0;
    solveDistFactor = 1.0;
    solveRandomizeConstraints = true;
    bruteColliderCutoff = 0;
    solveTCables = 0.05;
    sortBroadPhasePairs = false;
    blockedContactSolver = false;
    cableLineSmartChoice = true;
    solveTconstraints = 0.05;
    solveVelFactor = 1.0;
    defaultBodyDensity = 2.0;
    cableJacobianScale = 1.0;
    airFrictionLinear = 0.01;
    maxPositionCorrection = +inf;
    warmStart = true;
    cableMaxSlack = 0.1;
    running = true;
    optimizeContactSet = true;
    airFrictionMultiplier = 1.0;
    targetPenetration = 0.0001;
    solveReverseConstraints = false;
    polygonMeshSize = [128, 128];
    cableMaxImpFactor = +inf;
    defaultBodyFriction = 0.5;
    fastPolyAABB = true;
    nyquistFactor = 4.0;
    cableLineConstraint = true;
    springForce = 1000.0;
    warmStartFactor = 0.5;
    airDensity = 0.01;
    largeOverlapTest = true;
    solvePenetrationDamping = false;
    rotFrictionLinear = 0.00314;
    defaultBodyRestitution = 0.5;
    solveAccFactor = 1.0;
    cableSafetyDistance = 0;
    cableLineInternalize = false;
    forceContactCalculations = false
};
sin = {math.sin};
WebCam -> {
    flipVert = false;
    flipHoriz = false
};
Defaults -> {
    glueToWorld = false;
    borders = true
};
spawnPyramid = (n)=>{for(n, (i)=>{spawnBoxRow([(n - i) * 0.5, n - i], i)})};
exit = {System.exit};
App -> {
    fadeColor = [0.0, 0.0, 0.0];
    updateInterval = 1;
    alwaysCalcContacts = false;
    laserResolution = 10.0;
    waterMaxElongation = 2.0;
    maxBorderArea = 0.2;
    borderWidth = 0.1;
    waterColor = [0.1, 0.1, 1.0, 0.7];
    waterRefractiveIndex = 1.33;
    sceneFadeInTime = 1.0;
    polytoolPreviewColor = [1.0, 0.5, 1.0, 0.4];
    gpuWater = true;
    drawBCs = false;
    drawVertices = false;
    maxPointDist = 0.5;
    drawScaleIndicator = true;
    maxUndo = 40;
    metaWater = true;
    minPointDist = 0.15;
    maxSPHSpawn = 2000;
    laserWidth = 0.2;
    maxBorderAreaSpecial = 0.4;
    drawOBBs = false;
    Grid -> {
        grid = false;
        base = 4;
        numAxes = 2;
        scale = 1.0;
        snap = true
    };
    language = "English";
    fadeTranslate = [0.0, 0.0];
    waterTracerLightness = 0.75;
    GUI -> {
        geomGenTolerance = 1.2;
        toolGestureSensitivity = 1.0;
        drawDragLine = true;
        dragUndo = true;
        useHSL = false;
        alikeTolerance = 0;
        geomGenShrink = 0.0033;
        toolGestures = true;
        Forces -> {
            normalText = "N";
            totalText = "";
            airFrictionText = "-fv";
            attraction = true;
            gravityText = "mg";
            airBuoyancyText = "-adg";
            airFriction = true;
            airBuoyancy = true;
            total = true;
            attractionText = "A";
            externalText = "ext";
            friction = true;
            drawValues = true;
            drawNames = true;
            external = true;
            normal = true;
            velScale = 1.0;
            frictionText = "T";
            springText = "-kx-bv";
            forceScale = 1.9;
            drawForces = false;
            gravity = true;
            contactCombinationDistance = 1.2;
            spring = true;
            velocities = false;
            frictionProjection = true;
            hingeText = "H";
            hinge = true
        };
        trapUser = false;
        geomGenMinArea = 0.0009;
        drawHingesWhenRunning = true;
        toolSpecificCursors = true;
        zoomFactor = 0.2;
        allowDrawSelect = true;
        level = 3;
        Scene.addWidget {
            widgetID = "SimControl";
            minimized = false;
            pos = [0.0, 70.0];
            size = [521.0, 40.0];
            title = ""
        };
        Scene.addWidget {
            widgetID = "Toolbar";
            minimized = false;
            pos = [0.0, 31.0];
            size = [600.0, 32.0];
            title = ""
        };
        Scene.addWidget {
            widgetID = "Options";
            minimized = false;
            pos = [919.5, 550.0];
            size = [517.0, 266.0];
            title = "Options";
            contents = {activeTab = 1}
        };
        Scene.addWidget {
            widgetID = "EntityOptions";
            minimized = false;
            pos = [0.0, 117.0];
            size = [178.25, 96.0];
            title = "Settings"
        };
        Scene.addWidget {
            widgetID = "SimInfo";
            minimized = false;
            pos = [15.0, 676.0];
            size = [160.25, 210.0];
            title = "Sim-info"
        }
    };
    laserEvents = true;
    screenshotsWithAlpha = false;
    laserBroadPhase = true;
    Background -> {
        skyColor = [0.45, 0.55, 1.0, 1.0];
        cuteClouds = true;
        drawClouds = true;
        cloudOpacity = 0.95
    };
    scaleGravityField = false;
    drawBodyCenters = false;
    drawCables = false;
    forceVertexPolygonDrawing = false;
    maxPolygonBorderFactor = 0.75;
    pointSize = 3.0;
    chainDensityFactor = 1.0;
    laserSuperBoost = 1.0;
    dragToolStrength = 0.25;
    HQPolygons = false;
    drawParticleNeighbors = false;
    waterElongation = 0.05;
    fadeRotate = 0.0;
    drawSelectionOBB = false;
    drawVelocityFactor = 0.02;
    lineWidth = 3.0;
    drawParticleCenters = false;
    fadeScale = [0.95, 0.95];
    enableScriptMenu = true;
    checkForUpdates = true;
    DPI = 86.0;
    waterTracers = 0;
    autosaveTime = 300.0;
    waterFanceyFactor = 10.0;
    metaCutoff = 0.5;
    numColorsInRainbow = 12;
    drawCollisions = false;
    drawMapOBBs = false;
    waterTracerSize = 0.015;
    showGravityField = false;
    maxCogs = 128;
    autosaveEnable = true;
    laserWaterBVH = false;
    marchingSquaresResolution = 1.0
};
Console -> {
    fade = false;
    screenSize = 0.35;
    delay = 0.3;
    scroll = true;
    color = [0.1, 0.1, 0.1, 0.8]
};
Tablet -> {
    rightClickOverride = false;
    improveClickTolerance = true;
    overrideMouseEvents = true
};
Resources -> {
    textures = true;
    force16BitTextures = false;
    shaders = false
};
cos = {math.cos};
makeRing = (r, n)=>{
    list = [];
    for(n, (i)=>{
        a = (2 * math.pi * i) / n;
        list = list ++ [r * [cos(a), sin(a)]]
    });
    list
};
groovyOn = {
    App.fadeColor = [0.8, 0, 0.9];
    App.fadeTranslate = {[3 * sin(time), 2 * sin(time)]};
    App.fadeRotate = {sin(System.time * 1.2)};
    App.Background.skyColor = [0, 0, 0, 0]
};
Scene -> {
    author = "Robin Bron";
    title = "New scene";
    description = "";
    Camera -> {
        trackRotation = false;
        zoom = 150.0;
        smoothRotation = true;
        smoothPan = true;
        smoothFactor = 0.9;
        rotation = 0.0;
        pan = [0.0, 0.0];
        smoothZoom = true
    };
    gravityRotationOffset = NaN
};
time = {Sim.time};
GUI -> {
    rightToLeft = false;
    fontShadow = true;
    fgColor = [1.0, 1.0, 1.0, 1.0];
    font = "arial_black";
    crispFonts = false;
    clickTimeTolerance = 0.3;
    opacity = 0.8;
    cursorFPSLimit = 25.0;
    scale = 1.0;
    bgColor = [0.2, 0.2, 0.2, 1.0];
    penInput = false;
    forceOSCursor = true;
    fontShadowOffset = [0.125, 0.125];
    cursor = true;
    crispFontFactor = 0.5;
    tooltips = true;
    clickTolerance = 5.0
};
Threading -> {numThreads = 1};
Input -> {
    touchScreenDetection = true;
    touchScreenDetectionGoodCutoff = 30;
    touchScreenDetectionRelCutoff = 50
};
quit = {System.exit};
groovyOff = {
    App.fadeColor = [0, 0, 0];
    App.Background.skyColor = [0.45, 0.55, 1, 1]
};
Keys -> {
    Keys.bind("f12", {System.screenshot});
    Keys.bind("pause", {
        Sim.running = false;
        App.Step
    })
};
System -> {
    frame = true;
    minFPS = 10.0;
    resizable = true;
    maximized = true;
    maxFPS = 60.0;
    antiAlias = 1;
    regularScreenshots = 0;
    fakeFullscreen = true;
    depth = 32;
    vSync = false;
    fullscreen = false;
    resolution = [1280, 962]
};
for = (n, what)=>{
    n <= 0 ? false : {
        for(n - 1, what);
        what(n - 1)
    }
};
FileInfo -> {
    author = "Robin Bron";
    title = "New scene";
    version = 6;
    description = ""
};
spawnBoxRow = (offset, n)=>{for(n, (x)=>{Scene.addBox({pos = offset + [x, 0]})})};
spawnRing = {Scene.addPolygon({surfaces = [makeRing(1, 48), makeRing(0.5, 48)]})};
print = {Console.print}
Last edited by Bronie12345 on Sat Nov 28, 2009 9:49 am, edited 2 times in total.
When you make a comment at a scene, at least be brave enough to subscribe to that scene...
Don't go into a topic unprepared... Read the whole topic, including all the comments, before posting.

92% of teenagers have resorted to rap music. If you are part of the 8% who listens to real music, put this in your signature.
90% of teenagers today would die if Myspace/Facebook were completely destroyed. If you are one of the 10% who would be laughing their heads off, add this to your signature.
User avatar
Bronie12345
 
Posts: 451
Joined: Mon Aug 31, 2009 8:52 pm
Location: The Netherlands

Re: Algodoo running at 2.7% realtime

Postby Kilinich » Fri Nov 27, 2009 9:23 am

What OS? Did you set some compatibility mode? Did you install shipped with Algodoo VC++ redestrib ?
Dream of Algodoo as game development engine...
User avatar
Kilinich
[Best bug reporter 2010]
 
Posts: 2098
Joined: Mon Aug 31, 2009 8:27 pm
Location: South Russia

Re: Algodoo running at 2.7% realtime

Postby Bronie12345 » Fri Nov 27, 2009 9:47 am

OS: windows 7 ultimate (i don't know the build right now, because im at school)
yes, i installed VC++ redestributable
and i didn't set some compitability mode...
ill include it into the first post
When you make a comment at a scene, at least be brave enough to subscribe to that scene...
Don't go into a topic unprepared... Read the whole topic, including all the comments, before posting.

92% of teenagers have resorted to rap music. If you are part of the 8% who listens to real music, put this in your signature.
90% of teenagers today would die if Myspace/Facebook were completely destroyed. If you are one of the 10% who would be laughing their heads off, add this to your signature.
User avatar
Bronie12345
 
Posts: 451
Joined: Mon Aug 31, 2009 8:52 pm
Location: The Netherlands

Re: Algodoo running at 2.7% realtime

Postby Mystery » Fri Nov 27, 2009 9:50 am

It's your video card, this is a recurring error phun/algodoo has been having for quite some time.
There is no known way around this your either going to sit tight for an update (don't hold you breath this probleam has been around for as long as i can remember) or use a different computer.
User avatar
Mystery
 
Posts: 2802
Joined: Thu Sep 03, 2009 1:16 pm
Location: Southern Australia

Re: Algodoo running at 2.7% realtime

Postby Joel » Fri Nov 27, 2009 10:30 am

Yes, it seems that there are some issues with drivers for Windows 7. Check if you can update them, and that might solve the problem.
Algodoo Developer
Joel
 
Posts: 104
Joined: Mon Aug 31, 2009 11:03 am

Re: Algodoo running at 2.7% realtime

Postby Bronie12345 » Fri Nov 27, 2009 11:42 am

no, it's not my graphics card, i have the same drivers it worked on earlier, installed again, everything has same drivers as before, now it runs very slow...

i used phun and algodoo earlier on windows 7, and those times it worked fine...
and it is using its CPU 100%, not its graphics card...

i've also ran algodoo earlier on the same build of windows 7 earlier..
just reïnstalled windows...
When you make a comment at a scene, at least be brave enough to subscribe to that scene...
Don't go into a topic unprepared... Read the whole topic, including all the comments, before posting.

92% of teenagers have resorted to rap music. If you are part of the 8% who listens to real music, put this in your signature.
90% of teenagers today would die if Myspace/Facebook were completely destroyed. If you are one of the 10% who would be laughing their heads off, add this to your signature.
User avatar
Bronie12345
 
Posts: 451
Joined: Mon Aug 31, 2009 8:52 pm
Location: The Netherlands

Re: Algodoo running at 2.7% realtime

Postby gradyfitz » Sat Nov 28, 2009 3:55 am

I once had a problem similar to this, what are your display settings (like colour depth), because if Algodoo is in 16-bit colour mode, Windows should also be in 16-bit colour mode, if Algodoo is in 32-bit colour mode, Windows should also be in 32-bit colour mode, there can be quite a massive performance hit if you pair 16-bit colour depth on windows with 32-bit colour in Algodoo. The problem I had was on XP (x86) in 4.22, switching the display to 32-bit fixed the problem for me :D.

Hopefully that helped :D.
Mechanisms: 18 Mechanisms.
Thyme: Tutorial - Variables/Commands List.
Thymechanic
gradyfitz
 
Posts: 174
Joined: Tue Sep 01, 2009 8:33 am
Location: Victoria, Australia

Re: Algodoo running at 2.7% realtime

Postby Bronie12345 » Sat Nov 28, 2009 9:50 am

both of them are on 32 bit colors, so that's not the problem...
(you really thought, that with a GPU as powerfull like mine, i'd run algodoo/windows in 16-bit colors?)
When you make a comment at a scene, at least be brave enough to subscribe to that scene...
Don't go into a topic unprepared... Read the whole topic, including all the comments, before posting.

92% of teenagers have resorted to rap music. If you are part of the 8% who listens to real music, put this in your signature.
90% of teenagers today would die if Myspace/Facebook were completely destroyed. If you are one of the 10% who would be laughing their heads off, add this to your signature.
User avatar
Bronie12345
 
Posts: 451
Joined: Mon Aug 31, 2009 8:52 pm
Location: The Netherlands

Re: Algodoo running at 2.7% realtime

Postby thebeech » Sat Nov 28, 2009 2:35 pm

just try updating your graphics cards drivers.. i was told they were up to date but they werent and it didnt work on my windows 7, even thoguh it did at first.
Image
thebeech
 
Posts: 241
Joined: Mon Aug 31, 2009 8:32 pm
Location: Your Hardrive

Re: Algodoo running at 2.7% realtime

Postby Bronie12345 » Sat Nov 28, 2009 3:48 pm

updating right away...
i had version 185.something, and i'm updating to version 191.something XD
anyway, i hope the bug is fixed then...

then is the question, why does algodoo run slow on outdated drivers?

EDIT:
now algodoo runs fine...
the question now is the above largly marked question
When you make a comment at a scene, at least be brave enough to subscribe to that scene...
Don't go into a topic unprepared... Read the whole topic, including all the comments, before posting.

92% of teenagers have resorted to rap music. If you are part of the 8% who listens to real music, put this in your signature.
90% of teenagers today would die if Myspace/Facebook were completely destroyed. If you are one of the 10% who would be laughing their heads off, add this to your signature.
User avatar
Bronie12345
 
Posts: 451
Joined: Mon Aug 31, 2009 8:52 pm
Location: The Netherlands

Re: Algodoo running at 2.7% realtime

Postby Livirus » Fri Apr 30, 2010 2:54 am

Got the exact same problem. I didn't have any problem before I switched OS from Vista x32 to Windows 7 x64. Windows update says I got the latest drivers. But I'll try to manually download the latest drivers and install them.

Weather I solve the problem or not... something must be wrong with Algodoo when it's running that slow with an empty scene on an otherwize working computer.
User avatar
Livirus
 
Posts: 19
Joined: Fri Mar 26, 2010 7:08 pm

Re: Algodoo running at 2.7% realtime

Postby Dakta » Fri Apr 30, 2010 3:20 am

Well, I would attribute this to a combination of Asus modded nVidia chipset and Windows 7. Since Windows (in general) is the mess that it is, it's very hard to trace these sorts of things to their source. It is probably a problem with your video driver, some sort of bug introduced over time... Then again, I don't really know much about all the compatibility issues with Windows (one of the reasons I have a Mac... These things almost never happen to anyone, and have never happened to me).
.. ,__,_____
. / __.==--" - - - - - - - - ""
./#(-'
.`-' From http://www.ascii-art.de/. Modded by me to work in Arial. Image
a Mammoth wrote:be boring and interesting.

Mystery wrote:If you were jailbreaker you shouldn't have when't up the 3.1.3
I didn't know you could go up 3.1.3! Thanks Mystery person!
User avatar
Dakta
 
Posts: 417
Joined: Sat Sep 12, 2009 4:36 pm

Re: Algodoo running at 2.7% realtime

Postby RicH » Fri Apr 30, 2010 3:23 am

Try setting Windows into 32-bit color mode.
Millions of voices suddenly cried out in terror, and were suddenly silenced. Something terrible has happened.
User avatar
RicH
[Funniest Person 2010]
 
Posts: 2043
Joined: Tue Sep 01, 2009 9:01 am

Re: Algodoo running at 2.7% realtime

Postby Livirus » Fri Apr 30, 2010 5:20 pm

Dakta: Neither I have experianced anything like this, until now. It sux if you're right about the drivers, because that means I can't run Algodoo on this computer. :(

RicH: Yes, I run 32-bit color. But I think you have confused 32-bit colors with 32-bit OS/processor.
As microsoft put it in their FAQ:
"The terms 32-bit and 64-bit refer to the way a computer's processor (also called a CPU), handles information. The 64-bit version of Windows handles large amounts of random access memory (RAM) more effectively than a 32-bit system."

Here are some details on my computer if that helps:
Acer Aspire 3810T V1.07
OS: Windows 7 Ultimate (x64) (build 7600)

Processor:
1,40 gigahertz Intel Core2 Solo
64 kilobyte primary memory cache, 64-bit ready
Not hyper-threaded
RAM: 4000 Megabytes Usable Installed Memory


GPU:
Mobile Intel(R) 45 Express Chipset Family (Microsoft Corporation - WDDM 1.1) [Display adapter] (2x)
User avatar
Livirus
 
Posts: 19
Joined: Fri Mar 26, 2010 7:08 pm

Re: Algodoo running at 2.7% realtime

Postby RicH » Fri Apr 30, 2010 5:30 pm

I did not confuse them. I just forgot to ask if you actually run Windows in 32-bit color mode. It has been a common problem.
Millions of voices suddenly cried out in terror, and were suddenly silenced. Something terrible has happened.
User avatar
RicH
[Funniest Person 2010]
 
Posts: 2043
Joined: Tue Sep 01, 2009 9:01 am

Re: Algodoo running at 2.7% realtime

Postby Mystery » Sat May 01, 2010 2:02 am

This is why i don't like x64 sure they are faster but they have compatibility problems with everything.
User avatar
Mystery
 
Posts: 2802
Joined: Thu Sep 03, 2009 1:16 pm
Location: Southern Australia

Re: Algodoo running at 2.7% realtime

Postby electronicboy » Sat May 01, 2010 2:59 am

Livirus wrote:GPU:
Mobile Intel(R) 45 Express Chipset Family (Microsoft Corporation - WDDM 1.1) [Display adapter] (2x)

according to that you are using Microsoft's drivers :(

try using this to look for the proper drivers for your pc.
When asking for help, READ THE STICKIES!
electronicboy
 
Posts: 1694
Joined: Mon Aug 31, 2009 6:18 pm

Re: Algodoo running at 2.7% realtime

Postby Livirus » Tue May 04, 2010 12:30 am

Hmm that's weird. I'm 100% sure I downloaded the drivers from Acer's homepage. Maybe they offer the same driver that microsoft do? I'll try do it again and see if that information changes.
User avatar
Livirus
 
Posts: 19
Joined: Fri Mar 26, 2010 7:08 pm


Return to Help / Bug reports

Who is online

Users browsing this forum: No registered users and 4 guests