Comments (4)
Ok, so I had a quick look at https://www.github.com/l3lackShark/config. I found, that the way, that I laid out here will not work. Instead I propose, to just add a Number, after each overlay*
property, like follows:
overlayURL0 = http://localhost:24050/Simplistic
overlayWidth0 = 650
overlayHeight0 = 150
overlayOffsetX0 =0
overlayOffsetY0 =5
overlayScale0 =10
Of course, this requires, that there is a overlay entry, from 0-n, because otherwise it will end up getting messy.
Everything would be easier, if the config was in json/xml/yml. Then we could just have this be an Array.
Or how about overlay[n].{URL,Width,Height,OffsetX,OffsetY,Scale}
(Also possibly keep #62 in mind?)
This would require more logic on [
and .
, or one could just implement a comment, via any char combo (# and ; come to mind) and prefix the [Header] Sections with comments.
from gosumemory.
This will require a lot of changes on the c++ side of things. I'm not even sure if it's a good idea to have two instances of the browser (possible huge performance drop). Will check if it's reliable at some point.
from gosumemory.
I am talking about potentially a lot more instances, than two. I mean, like a scaleable solution.
- Why is it so expensive to run a browser?
- Is it the way, that javascript get's the updates?
- Is it, that there is just too much data flowing from gosumemory to the browser via websockets?
- Maybe one could just send changes, after an initial sync, with a new ws client? Like an initial "Hello, I'm a new client!", with a full response. Is there a better way to implement real time sync? What is expensive about the browser? or is it just the way, that the browser works?
- Or maybe we could l3lackShark/static#21 simplify the individual modules to a point, where all one has to do is add one line of js code, to add a overlay? Something like:
var socket = undefined;
var modulesJsCallbacks = [];
function getdatastuff(callback){
if (socket) socket=initws()
switch(wseventtype){
case "resize":
handleRezise()
break
case "move":
handleMove()
break;
case "partialTransfer":
handlePartialTransfer(callback)
break;
case "fullTransfer":
handleFullTransfer(callback)
break;
case "addModule":
handleLoadModule()
break;
case "rmModule":
handleUnloadModule()
break;
}
}
getdatastuff((data)=>{
modulesJsCallbacks.forEach((i)=>i(data))
}
Then one could containerize (div elements?) the individual counters. The individual counters could still be moved via CSS, but the positioning will have to happen as a websocket event. The Module offset could still be stored via the config, but the first thing, that would have to happen is a move and resize event for all loaded modules.
The div's for the individual modules would then be identified, by an identifier. For starters we could either use the Module name, which would restrict the possible modules to one per module, or we could use a numeric id.
The upsides would be a solution, which could accomidate all Modules in a single browser instance.
from gosumemory.
- Why is it so expensive to run a browser?
The biggest issue is the legacy opengl calls we use to draw the overlay. The more pixels you have to push the worsen it becomes. This is probably fine with a couple of small overlays, but then again, c++ side of things also need a huge change to add support for that. The ideal solution would be switching to PBO
s.
from gosumemory.
Related Issues (20)
- no memory matched the pattern
- "Expected mp3, got something else." "fopen: No such file or directory" HOT 1
- hitErrorArray keeps previous play's values
- My pp counter keeps on crashing
- allow gosumemory to visitable via other device on the same network
- Gosu flickers
- Issue: Config.ini not present
- is there any solution to this ? HOT 2
- Could not find star rating for this map
- The gosumemory window is telling me it's successfully installed, but when i osu and the gosumemory window nothing is happening. I have compatibility mode off and i have the nvidia fps counter off what do I do. HOT 1
- my counter disappears at the first second and does not work HOT 1
- RAM usage
- cant use the local host site
- Could not find star rating for this map or converts not supported yet"
- Proposal: Add support to decode .ogg music files
- can`t see gameoverlay HOT 1
- `menu.bm.time` variables other than current are 0
- PP isn't calculated at all
- It seems that we lost the process, retrying! ERROR: no process matching the criteria was found HOT 1
- Hits data can overflow on some special beatmaps
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gosumemory.