GithubHelp home page GithubHelp logo

Cache Strings about openviii-monogame HOT 5 CLOSED

makipl avatar makipl commented on May 14, 2024
Cache Strings

from openviii-monogame.

Comments (5)

Sebanisu avatar Sebanisu commented on May 14, 2024

Right now I have kernel_bin.cs asking for the strings from the Strings.cs. For names and descriptions. Maybe i should store the params and only get them when required. Things like this delay load time on start.

from openviii-monogame.

Sebanisu avatar Sebanisu commented on May 14, 2024

The dump files in root are like an xml map of the strings I made. I use as a reference. Is there a better place I should put them? I put them there so I wouldn't lose them and incase one of you needed it.
I also kinda wondered if I should make the values used to reference the strings into enums instead of numbers.
I was thinking if we need to change the numbers we have to change all the files instead of one. Though maybe there's a better way.

Maybe i should rewrite Strings.cs :P

from openviii-monogame.

Sebanisu avatar Sebanisu commented on May 14, 2024

I thought of an optimization on the way home. It seems to increase speed a bit. I added a cache to archive worker. And so now it will check a dictionary before it reads the index and the binary data. It still reads the list to make sure the filename is correct. Before for each string it would have to read the binary data from the drive again. Kinda silly. I also have more ideas to improve string class.

from openviii-monogame.

Sebanisu avatar Sebanisu commented on May 14, 2024

I re did some of the strings class. Gonna sleep then test it tomorrow. I broke the different sting flies into their own classes with a base abstract class. Instead of 4 copies of some variables and duplicate methods in one class.

from openviii-monogame.

Sebanisu avatar Sebanisu commented on May 14, 2024

I think I worked the bugs out. I'll try to write a wiki entry about this.

from openviii-monogame.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.