Jump to content
System downtime for updates - Monday 21 April 2025 ×
The Dark Mod Forums

Recommended Posts

Posted (edited)

Consider the following. You have a mobile device with two physically separate disks. There's the internal NAND, and the SD card. When the device is powered on, it builds a database of all of the files on both of these drives so that files can be found quickly. Thing is though, it does this even if no changes have been made to the drives since the last power off, wasting loads of battery power and causing UI lag... and it does this at EVERY boot!

 

Proposed solution: When the device is instructed to power off, it creates a file on the drive with a timestamp, and then immediately unmounts the file system. Then when you turn it on again, the device copies the last modification time of the file systems on the drives into memory. Then it actually mounts the file system and compares the date in memory to the timestamped file I mentioned above. If they are within a couple of seconds of each other, no external changes have been made to the drive and it is not necessary to rebuild the entire database from scratch.

 

However, if they are out of sync, that indicates that somebody hooked the SD card to another machine, meaning the database needs rebuilt.

 

Why is something this simple not implemented? I'm not even an engineer and stuff like this seems so logical.

Edited by lost_soul
  • Like 1

--- War does not decide who is right, war decides who is left.

Posted

Sometimes patents hold back engineering and backwards compatibility too. That seems to translate over to most of IT but especially with phones

Posted
Why is something this simple not implemented? I'm not even an engineer and stuff like this seems so logical.
  1. The "simplest" solution is to scan the disks on every boot. Your solution is not simpler than this. It is more complex, requiring additional work to implement and (more importantly) test.
  2. Filesystems (especially ancient ones used in phones like FAT32) don't necessarily store a global "last modification time", and even when they do the software can't guarantee it is accurate. The SD card could have been modified on another system that doesn't correctly update the last modification time.
  3. If a problem isn't causing problems for most users than a company is not going to spend money solving it. I have never been particularly bothered by the few seconds of media scanning that happens when I (rarely) reboot my phone, and this is the first time I have ever heard anyone complain about it. Whenever you are tempted to wonder "why hasn't <company> fixed this already", this is most likely the reason.

Posted

The thing is, when you have 70+ gigs of music, its not a matter of seconds of scanning... its a matter of minutes. The long scan will drain 4-6% of the battery. I would like to be able to justt leave the thing turned on, but I frequently find it dead within a couple days because some mis-behaving app has went rogue and sucked the life out of the battery.

--- War does not decide who is right, war decides who is left.

Posted

As others have explained, the answer comes down to "cost".

 

However, there's a fallacy here.

 

There's a cost to you, the inconvenience of turning the device on and having it already partially depleted and laggy. What is the cost to you of charging it before that inconvenience would occur? Isn't it zero since you'd have to charge it anyway? I SO hate to ask this because it might be taken as "not nice", but..."Why are simple solutions to problems so frequently overlooked?" ;-)

 

So, you have several choices...

 

One: If you have an Android, Firefox or open source Java phone, hire someone to make it work like you describe, or alternatively, have it do the scan at a lower priority or when the phone isn't actively being used by you, or not at all if you never use the search (like me with Windows, it's just turned off). That should only cost a few hundred or thousand dollars once. (If you have a closed source phone, replace it for an additional tens of dollars.)

 

Two: Hire a physical personal assistant to regularly look at your phone to see if it needs charging, and plug it in for you. That should only cost tens of thousands of dollars annually. (No, I am not available to provide this service, sorry.)

 

Three: Stop ignoring your low battery indications. $14.95 once.

 

Four: Simply plug your phone in when you go to sleep. $14.95 once.

 

You might wonder why options three and four aren't "Free!", the answer is they weren't apparent to you, such that you consulted here. My consulting rate for this type of thing is $60/hour, but since you are a "lost soul" and member of the TDM community, I've prorated this invoice and am billing you just a quarter hour instead of the customary one hour minimum. Please remit payment via Paypal to my username at yahoo, then enjoy never having to suffer lag while your phone indexes, plus enjoy 5% greater battery life!

 

PS: If paying by credit card, please include the 4% processing fee, for a total of $15.55.

  • Like 1

"The measure of a man's character is what he would do if he knew he never would be found out."

- Baron Thomas Babington Macauley

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • JackFarmer

      "Hidden Hands: Vitalic Fever" - new update available including subtitles & compressed briefing video (thanks to @datiswous) and several fixes.
      · 0 replies
    • Wolfmond

      🇬🇧

      2025-04-20
      I'd like to track my level design progress a bit more often now, so I'm using the feed in my profile here.
      I've been working intensively on Springheel's YouTube course over the past few days. I'm currently up to lesson 8. There is so much information that needs to be processed and practiced. 
      I have started to create my own house. As I don't have the imagination to create a good floor plan, I grabbed a floor plan generator from Watabou and experimented with it. I chose a floor plan that I will modify slightly, but at least I now have an initial idea. 
      I used two guards as a measuring tape: The rooms are two guards high. It turned out that I can simply double the number of boxes in DarkRadiant in grid size 8 that are drawn in the floor plan. 
      I practiced the simplest things on the floor plan first. Drawing walls, cutting walls, inserting doors, cutting out frames, creating VisPortals, furnishing rooms.
      I have had my first success in creating a book. Creating a book was easier than I thought. I have a few ideas with books. The level I'm creating will be more or less a chill level, just for me, where I'll try out a few things. I don't have an idea for my own mission yet. I want to start small first.
      For the cellar, I wanted to have a second entrance, which should be on the outside. I'm fascinated by these basement doors from the USA, I think they're called Bilco basement doors. They are very unusual in Germany, but this type of access is sometimes used for deliveries to restaurants etc., where barrels can be rolled or lifted into the cellar. 
      I used two Hatch Doors, but they got completely disoriented after turning. I have since got them reasonably tamed. It's not perfect, but it's acceptable. 
      In the cellar today I experimented with a trap door that leads to a shaft system. The rooms aren't practically finished yet, but I want to continue working on the floor plan for now. I'll be starting on the upper floor very soon.

      __________________________________________________________________________________
      🇩🇪

      2025-04-20

      Ich möchte nun mal öfters ein bisschen meinen Werdegang beim Leveldesign tracken, dazu nutze ich hier den Feed in meinem Profil.
      Ich habe mich in den vergangenen Tagen intensiv mit dem Youtube-Kurs von Springheel beschäftigt. Aktuell bin ich bis zu Lektion 8 gekommen. Das sind so viele Informationen, die erstmal verarbeitet werden wollen und trainiert werden wollen. 

      Ich habe mich daran gemacht, ein eigenes Haus zu erstellen. Da mir die Fantasie fehlt, einen guten Raumplan zu erstellen, habe ich mir einen Grundrissgenerator von Watabou geschnappt und damit experimentiert. Ich habe mich für einen Grundriss entschieden, den ich noch leicht abwandeln werde, aber zumindest habe ich nun eine erste Idee. 

      Als Maßband habe ich zwei Wächter genommen: Die Räume sind zwei Wächter hoch. Es hat sich herausgestellt, dass ich in DarkRadiant in Gittergröße 8 einfach die doppelte Anzahl an Kästchen übernehmen kann, die im Grundriss eingezeichnet sind. 

      Ich habe bei dem Grundriss erstmal die einfachsten Sachen geübt. Wände ziehen, Wände zerschneiden, Türen einsetzen, Zargen herausschneiden, VisPortals erstellen, Räume einrichten.

      Ich habe erste Erfolge mit einem Buch gehabt. Das Erstellen eines Buchs ging leichter als gedacht. Ich habe ein paar Ideen mit Bücher. Das Level, das ich gerade erstelle, wird mehr oder weniger ein Chill-Level, einfach nur für mich, bei dem ich ein paar Sachen ausprobieren werde. Ich habe noch keine Idee für eine eigene Mission. Ich möchte erst einmal klein anfangen.

      Beim Keller wollte ich gerne einen zweiten Zugang haben, der sich außen befinden soll. Mich faszinieren diese Kellertüren aus den USA, Bilco basement doors heißen die, glaube ich. Diese sind in Deutschland sehr unüblich, diese Art von Zugängen gibt es aber manchmal zur Anlieferung bei Restaurants etc., wo Fässer dann in den Keller gerollt oder gehoben werden können. 
      Ich habe zwei Hatch Doors verwendet, die allerdings nach dem Drehen vollkommen aus dem Ruder liefen. Inzwischen habe ich sie einigermaßen gebändigt bekommen. Es ist nicht perfekt, aber annehmbar. 
      Im Keller habe ich heute mit einer Falltür experimentiert, die zu einem Schachtsystem führt. Die Räume sind noch quasi nicht eingerichtet, aber ich möchte erstmal am Grundriss weiterarbeiten. In Kürze fange ich das Obergeschoss an.



      · 2 replies
    • JackFarmer

      On a lighter note, thanks to my cat-like reflexes, my superior puzzle skills and my perfect memory, I was able to beat the remastered version of "Tomb Raider: The Last Revelation" in a new superhuman record time of 23 h : 35 m, worship me!
      · 3 replies
    • Goblin of Akenash

      My mapping discord if anyone is interested, its more of a general modding thing rather than just for TDM 
      https://discord.gg/T4Jt4DdmUb

       
      · 0 replies
    • nbohr1more

      2.13 Moddb Article is up: https://www.moddb.com/mods/the-dark-mod/news/the-dark-mod-213-is-here
      · 1 reply
×
×
  • Create New...