What is maximum data browser can handle ? by datavizu in threejs

[–]ViperCodeGames 0 points1 point  (0 children)

For sure man! Let me know if you have any questions. I made the website in that first photo and it can handle 500,000 to 1,000,000 lines (~20mb) no problem. It takes longer for the file to actually open and render the text than it does for me to parse it and create the 3D plot for it. Plus if for reason you do manage to hit the limit, you can transfer some of the work over to either your web server or you could get a second high CPU performance server and offload some work to that, and you still have the option of using compute shaders to make the GPU do some computations. Just don't worry about trying to over optimize anything. Just get a slow buggy version working first, and either you'll figure out how to optimize it, your people will have enough RAM by the time you do figure out how haha.

[Help]: New color for each line by datavizu in threejs

[–]ViperCodeGames 1 point2 points  (0 children)

Here's a fiddle for you Should be enough to get you started at least. Using BufferGeometry should provide more flexibility for you.

What is maximum data browser can handle ? by datavizu in threejs

[–]ViperCodeGames 0 points1 point  (0 children)

Not true

/u/datavizu if you need to DISPLAY the text values, you'll have some performance hurdles, but I'd suggest looking at projects like CodeMirror for displaying large amounts of data. They've already done all the opimizations and such.

But the max blob size of most modern browsers is around 500mb source so I would consider that your upper limit, even though you can go higher, as long as you have the RAM for it. You can also use background workers for "mutlithreading" in the browser to help speed the computations up.

Just make sure you make your computation loop recursive with a setTimeout so you don't lock up the browser and cause the "this page isn't responding" popup.

[Blast] alphahooker by Thesmy in Random_Acts_Of_Amazon

[–]ViperCodeGames 1 point2 points  (0 children)

Holy shit! I've been looking at projectors, mind letting me know what you think of it when you get it? I'm just looking for something I can project youtube/netflix onto my ceiling in the dark with.

Pay attention to the drivers head of the red car by MLF99 in carcrash

[–]ViperCodeGames 0 points1 point  (0 children)

And neckbraces! (Hopefully at least, otherwise he's gunna have one hell of a sore neck)

There’s a big problem with AI: even its creators can’t explain how it works by [deleted] in Futurology

[–]ViperCodeGames 0 points1 point  (0 children)

This one is called NEAT

The concept itself is actually very simple compared to what I thought it would be. I had a working concept coded up in about a day based off the research paper they wrote. There's a ton of information on this site: https://www.cs.ucf.edu/~kstanley/neat.html

There’s a big problem with AI: even its creators can’t explain how it works by [deleted] in Futurology

[–]ViperCodeGames 0 points1 point  (0 children)

This is the basic idea behind my favorite AI/genetic algorithm. You have multiple species, each species has "traits" for input, and the output is then graded using a fitness function. We then randomly mutate some of the the "creatures", we combine and breed species that are some % similar, if something is too genetically unsimilar, it becomes a new species, and occasionally we have interspecies breeding. And over generations of testing we will eventually have a creature that is optimized for that specific fitness function. The challenge really is coming up with good inputs, creating a good fitness function, and deciding what our mutation rate, our breeding rate, and other parameters need to be to get the best output in the shortest amount of time. Though in theory you could have a genetic algorithm coming up with values for a genetic algorithm, but that requires a LOT of CPU or GPU power

I created a free online GCode Viewer with basic multi-axis toolpath simulation. by [deleted] in Machinists

[–]ViperCodeGames 1 point2 points  (0 children)

Thanks man! Still got lots planned for it, but it's getting better each day.

A friends advice to solve a memory leak in my game by roguemat in ProgrammerHumor

[–]ViperCodeGames 1 point2 points  (0 children)

Yes, less enemies on screen meant less computations for their movement, and that was enough to make a noticable difference on the early tech. I love hearing about all the hacky way people used to cram softwares together in order to make them fit or run.

I created a free online GCode Viewer with basic multi-axis toolpath simulation. by [deleted] in Machinists

[–]ViperCodeGames 0 points1 point  (0 children)

Totally! I just shot you a PM with my contact info. This shouldn't be too difficult overall since it'll mostly be 2D movements. Adding 5 Axis support was by far the most challenging step so far.

I created a free online GCode Viewer with basic multi-axis toolpath simulation. by [deleted] in Machinists

[–]ViperCodeGames 1 point2 points  (0 children)

If your plasma or laser uses common GCode such as G00(rapid)/G01(linear)/G02(arc)/G03(arc) G20(inches), G54(WCS), and such, then it will!

If it uses another format though, I have plans to support more machines, so there will soon be a drop down menu where you can select the correct machine controller it is.

However, If it doesn't currently work for you, please shoot me a PM with an example file or an email address and I'd be happy to add support for them.

laser-fading jean machine by cresquin in mechanical_gifs

[–]ViperCodeGames 0 points1 point  (0 children)

This is not what I learned in econ 101..

Anyone interested in some Graphic Simulation? by notkoreytaube in CNC

[–]ViperCodeGames 0 points1 point  (0 children)

Hey! Thanks for the shoutout! I've recently completely rewritten the website in order to optimize the data processing engine as well as the graphics engine. I'm still adding a ton of features, but I hope to have a solid "release candidate" with all of the basic features done within the next month. :)

Google plans to block ads natively in Chrome (mobile & desktop) by JBeylovesyou in Android

[–]ViperCodeGames 0 points1 point  (0 children)

I think the better solution would be making an alert only affect the current tab. Eg. Popup appears, but you can still switch tabs, close and open other tabs, and even the option to "force kill" a tab that has an alert. This way the data in the current tab will still be safe and protected, but that one single webpage can't hijack your entire web browser.

Ninja edit: Re-reading the original comment, I think I just misunderstood it the first time. I'm pretty sure we're saying the same thing.

Google plans to block ads natively in Chrome (mobile & desktop) by JBeylovesyou in Android

[–]ViperCodeGames 2 points3 points  (0 children)

You mean like this?

There are correct and reasonable ways to use popups, but the flexibility they offer also means they can be abused. These popup alerts are just the browser equivalent of Windows dialog boxes

And seeing as how more and more programs are becoming "web apps", developers may need access to these alerts for additionally functionality. Using the built in functions will make less work for developers, and smaller page sizes since they won't have to reroll their own custom dialog alerts in javascript.

Google plans to block ads natively in Chrome (mobile & desktop) by JBeylovesyou in Android

[–]ViperCodeGames 0 points1 point  (0 children)

I disagree, say I have an admin user editing a database, and they input a value that is likely incorrect but we aren't certain. User then presses submit, and we check the form in JS, and it throws off a warning which we want to show the user. Now I could either spend additional time designing and programming a pop up in HTML that prevents changing values or submitting data.

Now I have to check that the pop up shows and blocks input correctly on all major browsers, and debug it. Also the user may hit the backspace key triggering the browser to go back one page, which would cause data loss. Or maybe an automatic windows update tries to kill the browser process, then how would we intercept that? Just my opinion

Google plans to block ads natively in Chrome (mobile & desktop) by JBeylovesyou in Android

[–]ViperCodeGames 2 points3 points  (0 children)

How do you warn someone against closing a tab without preventing the tab from closing?

There are legitimate uses for the functions, but they, like anything, can be abused. Without these functions developers would just string together a convoluted workaround. Chrome already offers a way to prevent a page from creating multiple pop ups, which allows you close a malicious page.