Git Product home page Git Product logo

Comments (9)

TomGrobbe avatar TomGrobbe commented on July 28, 2024 1

This is my most expensive resource at around 0.30ms - realistically it should be zero while outside of a vehicle.

Then how do you expect the resource to know if you've entered a vehicle if it can't do any checks when the player is not inside a vehicle?

That wouldn't work. Besides, 0.3ms is very, very slight. You're not going to get much lower than that for a c# resource.

I created a testing resource and it constantly had around 0.7ms when some dependencies where loaded, and 0 Tick functions were running.

You're simply not going to achieve 0ms delays for this kind of resource.

from frfuel.

thers avatar thers commented on July 28, 2024

Thanks, I'll look into it.

from frfuel.

TomGrobbe avatar TomGrobbe commented on July 28, 2024

Frfuel gives a resource time warning on clients since the FiveM client update.

Is this still happening? I've not been able to reproduce this while testing...

from frfuel.

avery1227 avatar avery1227 commented on July 28, 2024

I've noticed it too but rarely.

from frfuel.

thers avatar thers commented on July 28, 2024

As we were unable to reproduce it, im gonna ask you guys: is it critical enough to consider this an issue? If yes then I'll keep it open and hope someday it will either reproduce under some circumstances or be gone completely :)

from frfuel.

avery1227 avatar avery1227 commented on July 28, 2024

I do feel this is a larger issue on low to mid range computers. I've been notified several times since my last reply. I personally believe it has to do with all the code being ran nearly non stop while in a vehicle. Such as get and display fuel level and set new fuel level. In reality if you were unable to reproduce the issue I would recommend closing this unless someone is able to get more information.

Thanks

from frfuel.

thers avatar thers commented on July 28, 2024

I personally believe it has to do with all the code being ran nearly non stop while in a vehicle. Such as get and display fuel level and set new fuel level.

Unfortunately, this is how it works, you have to do all these things on each tick (read frame), just to keep things in order on the screen. That's how original scripts work.

What's interesting though is where exactly it can stutter.

from frfuel.

TomGrobbe avatar TomGrobbe commented on July 28, 2024

I personally believe it has to do with all the code being ran nearly non stop while in a vehicle. Such as get and display fuel level and set new fuel level.

That could be the issue, however there's no way around this as you kind of need to know your fuel level when you're inside the car. Besides, drawing it on the screen needs to be ran non stop anyway. edit: ninja'd by thers

from frfuel.

Sojobo avatar Sojobo commented on July 28, 2024

This is my most expensive resource at around 0.30ms - realistically it should be zero while outside of a vehicle.

from frfuel.

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.