Hard disk stop working after some time

37

Assuming Windows...verify you don't have configured the hard drive to turn off: Control Panel>power options>advanced power settings>Hard disk.

Share:
37

Related videos on Youtube

SpaceBear
Author by

SpaceBear

Updated on September 18, 2022

Comments

  • SpaceBear
    SpaceBear over 1 year

    I have a game with tiles and fog of war on top of those tiles. I use CylinderGeometry to create hex tiles. Then i create another CylinderGeometry and place it above the hex tile, that new tile acts as a fog of war. For a fog tile, I wanted to randomize verts a bit, so that it looks less uniform. But by doing so, I encountered an issue where my original tile also gets randomized. I don't really understand how that happens. I tried creating fog tile first too, but still the ground tile is also randomized.

    Here is my code:

    class Tile extends THREE.Object3D 
    {
        constructor ( radius, gridX, gridY, fogMaterial ) 
        {
            super();
    
            this.gridX = gridX;
            this.gridY = gridY;
    
            this.gameEntityType = 'Tile';
    
            let height = .25;
            let geometry = new THREE.CylinderGeometry(radius * .8, radius * .8, height, 6);
            let tileColor = this.randomColor();
    
            let material = new THREE.MeshToonMaterial( { color: tileColor, shininess: 10 } );
            material.flatShading = true;
            let mesh = new THREE.Mesh(geometry, material);
            this.add( mesh );
    
            const fogGeometry = new THREE.CylinderGeometry(radius * .8, radius * .8, height * 10, 7);
            const per = 0.25;
            const perY = 2.5;
            fogGeometry.vertices.forEach(v => 
            {
                if ( (v.x - radius) < 0.3 && (v.z - radius) < 0.3 )
                {
                    v.x += map1(Math.random(), 0, 1, -per, per);
                    v.y += map1(Math.random(), 0, 1, 0, perY);
                    v.z += map1(Math.random(), 0, 1, -per, per);
                }
            });
            const fogMesh = new THREE.Mesh( fogGeometry, fogMaterial );
            this.add( fogMesh );
    
            fogMesh.position.y = 3;
    
            return this;
        }
    }
    

    Any clues why this would happen? Does THREE cache some things underneath?

    Here is the JSFiddle

    Edit: I dumped the vert positions of the tile before and after fog gets generated and they match. I read that Geometry gets converted to the BufferGeometry at some point, could that cause this?

    • gronostaj
      gronostaj almost 11 years
      That doesn't prove it's a HDD problem. It just proves that nothing uses HDD when it happens.
    • Admin
      Admin almost 11 years
      @gronostaj I am confused, that's why I am asking. Is this due to a corrupted windows installation
    • gronostaj
      gronostaj almost 11 years
      I don't know what causes the problem, I just wanted to let you know that HDD isn't the certain source of it. I've seen exactly the same issue mentioned od SU many times, maybe some of the older questions has been answered.
    • Jan Doggen
      Jan Doggen almost 11 years
      Cause and effect are confusing here. It could be that your PC hangs because of some software conflict, and then the HD stops working as well. The software conflict would not be a real lock but like two programs consuming all resources. On the other hand, because it restarts and you have power problems, I'd look in power management (the PC settings and your house). First thing I'd try is see if you can do something about the fluctuations - get a UPS.
    • Werner Henze
      Werner Henze almost 11 years
      Please check the Event logs.
    • Daniel R Hicks
      Daniel R Hicks almost 11 years
      It's not unusual for Windows, after booting, to lock up for sometimes several minutes as it does whatever mysterious stuff it feels it must do. Usually the drive is being used for most of this, but there are periods when no drive activity is noted. (This is why people tend to leave Windows running, vs powering down when not in use.)
    • Jan Doggen
      Jan Doggen almost 11 years
      @Daniel, if you have that issue, startup programs are fighting over resources. Install Startup Delayer to delay the start of some of them (there's many programs you don't need right after startup).
    • Admin
      Admin almost 11 years
      Ok, I forget to tell. In my case low voltages are real culprit. Before, the last few days my voltage stabilizer is not working. So, the voltage are very low. Now, the problem is over and my PC is working smoothly.
    • Mugen87
      Mugen87 about 4 years
      Can you please try to demonstrate the issue with this live example jsfiddle.net/08ups9qL/1? I've adapted your code but I'm not able to reproduce the reported problem.
    • SpaceBear
      SpaceBear about 4 years
      @Mugen87 i updated the fiddle. You can see the effect when you comment in/out line 36 in the html window. (jsfiddle.net/bcL7o8ua) Edit: I thought maybe it was shadow or something, but if i rotate and look under, you can still see separation between tiles
  • SpaceBear
    SpaceBear about 4 years
    ooooooooooh. that's it. lol. That never crossed my mind at all. Thank you so much!
  • Mugen87
    Mugen87 about 4 years
    Well, that was actually hard to debug XD