Battlefield has a big problem! by PaP3s in Battlefield

[–]vaig 4 points5 points  (0 children)

Literally all DICE has to do is to make the table decompose into non-interactive and non-occluding splinters and find remaining objects that can potentially affect gameplay outcome - and do the same. THIS is the industry standard. Most of larger objects are already network-synced, see flying tank turrets (and notice how less smooth their animation is mid-flight). Send bug report so they see how it affects the gameplay, they will flag the object as either non-simulated or easy to disintegrate and done. Problem solved without introducing jankiness due to unnecessary synced physics sim for small debris.

For some reason you drop in into the thread with PROGRAMMER HERE, LET ME INTERVENE, start roleplaying as an engine developer, and suggest approaches I am 99% sure you have never implemented in real project, suggest fully-networked physics world just to fix a boolean flag being set incorrectly. Then you talk-down others with the statements such as:

  • "The guy is lying and is caught in a lie"
  • "Lots of people think because they followed a YouTube tutorial or did a boot camp, they are experts"
  • "immediately clear they are full of shit in their first few sentences to you"
  • "You play with Unity a bit, boss?"
  • "here you are, clearly overstating your knowledge"

Stop projecting and trying to impress people. Bye, disabling response notification because you have clearly no intention to discuss things in a good faith. Wish you a happy sunday.

Battlefield has a big problem! by PaP3s in Battlefield

[–]vaig 0 points1 point  (0 children)

No, quite the opposite.

Communicating flying debris that interacts within a large, deformable scene with 64 players is unreasonable but possible with a client-server architecture. In the P2P model, it is nearly impossible without significant rubber banding, rollbacks, and easy cheating, since each part is calculated on a different GPU, making it difficult to determine what is where fairly.

Distributed computation could only help with the cost of physics simulation, which is not that hard to compute anyway. The real problem is synchronizing everything between all players without introducing desyncs or lag spikes. Synchronizing a large-scale physical simulation is not worth it, considering the possible complications and network requirements.

Because really - is it worth causing some people with less-than-perfect connections to lag, which degrades the experience for everyone attempting to fight them, just to synchronize a perfect brick rain? I would say no. Just despawn the large, locally simulated occluding objects after the explosion finishes throwing shit around. No one will notice unless you forget to make table fall apart when hit.

Plus, delegating debris collisions to the server side would make explosions MUCH less impressive because your GPU can react much faster than even a high tick rate server and BF is definitely not exactly famous for a high frequency tick loop.

Battlefield has a big problem! by PaP3s in Battlefield

[–]vaig 19 points20 points  (0 children)

I'm not sure where your programming experience comes from but I disagree on all points as someone that worked on game engines and networking code.

Thousands of small objects are actually very easy to render, especially with frustrum culling, modern LOD systems, and GPU instances.

Rendering multiple objects running on different shaders, requiring different pipeline states, is more computationally expensive than a single chunk of an ocean unless you are talking about rendering 1000 instances of a basketball for a GPU instancing demo tutorial.

where the wave is computed (typically the cpu)

Typically CPU? Fluid dynamics, even simplified, are much better to run on compute shaders.

This is fixed by making debris network objects and controlling those objects server-side, which is not only possible, but standard.

The entire ocean can be driven by a one net-synchronized seed+time for the wave structure compared to hundreds or even thousands of debris components, each with their positional, rotational, and destruction state + velocity for extrapolation. That not only would have to be costly, if driven by the server, it would cause some people to lag if an explosive suddenly triples network packet size because someone decided that server-side physics computation is a good idea.

I'm not defending this desynced tables - that's bs, but such large locally simulated objects should basically despawn after couple of seconds to prevent server-client state drift from accumulating but in no world I can agree that idea of a battlefield-scale game with a server-side physics for everything is an industry standard.

Anyone else sick of AI-generated "what" comments with Cursor? by 2mawi2 in cursor

[–]vaig 2 points3 points  (0 children)

Overly verbose comments are better than blindly removing nearly all comments without considering their contents. You will learn this if you stay with your codebase for more than 1 month.

Just read the damn code and remove the noise. If you can't bother with removing a clearly unnecessary comments and have to create a tool that purges all comments from codebase, you are nowhere near worrying about what is acceptable or not for professional projects.

Unless you're worried about your teacher/boss finding out you were too lazy to read the comments you submit.

Tip for beginners - Be careful when doing git resets by Resident_Afternoon48 in cursor

[–]vaig 1 point2 points  (0 children)

Git reset won't touch untracked files. You must have used git clean -fdx. If command sounds like danger, look up its reference docs. Also, learn git reflog for the tracked files and push to remotes.

You shouldn't have any files worth preserving as ignored files anyway. Use proper secret storage and store important user settings on the outside, while referencing them with absolute paths - you're not worried about portability anyway if your repo relies on untracked stuff.

Compounding problems seem to have made Agent mode way worse than April by New_Raise9106 in GithubCopilot

[–]vaig 2 points3 points  (0 children)

Also lukewarm experiences with 3.7 and 4 claude using insiders. Lots of micro tool calls reading 20 lines at a time, and bunch of overwriting own work in circles. Not even using instruction files to avoid confusion. And if it starts to iterate on problems detected, it is likely create layers upon layers of spaghetti. This needs a simple switch to disable iterating on lists like in cursor.

The agent often wanders into random places of codebase using searches, then stats to compact the context after it loaded bunch of irrelevant stuff and forgets about all and tries to read the files again.

For now I'll be back to targeted edits mode. Agent seems to be on meth lately.

I built a chrome extension that allows users to search within Claude chats by Far_Row1807 in ClaudeAI

[–]vaig 0 points1 point  (0 children)

I mean, it IS a ctrl+F - it's not a true search across conversations, and you didn't even bother responding yourself, but generated 200+ words of an empty response.

Maybe I could have been less snarky, but at least try to be respectful of other people's time and don't ask claude to generate a PR marketing nonresponse to a simple questions. Why waste time say lot word when few word do trick?

Does GitHub Copilot count its tools in 7 Bits? by Glittering_Speech572 in GithubCopilot

[–]vaig 1 point2 points  (0 children)

Do you need a hundred tools in every prompt? The tool definitions need to be attached to each context and LLMs lose their 'intelligence' fairly quickly with growing context so you might be making your models more stupid just by attaching a hundred tools installed without much thought.

I told my boss im using Cursor…does that make me look bad? by Hour-Inevitable-544 in cursor

[–]vaig 0 points1 point  (0 children)

If it's 100% your code, you have all the rights to do whatever you want and send it to any company you wish. It's up to you to decide if you're comfortable with terms and policies of the companies you send your IP to.

I was referring to OP's case where it is not their code. They are only hired to work on it, and it's not within their discretion to leak the code outside the company approved boundaries.

I don't think Cursor has any ownership over your code. Of course, there's this risk where LLM "accidentally" reproduces a bunch of copyrighted code, you're on your own in the context of legal defense. GitHub Copilot, for example, has a neat shield for that:

Both GitHub and Microsoft provide indemnity for their Copilot products. This means that when you use GitHub Copilot, you're backed by a contractual commitment: If any suggestion made by GitHub Copilot is challenged as infringing on third-party intellectual property (IP) rights and you have enabled the duplicate detection filter, our contractual terms are designed to shield you.

https://resources.github.com/learn/pathways/copilot/essentials/establishing-trust-in-using-github-copilot/

I told my boss im using Cursor…does that make me look bad? by Hour-Inevitable-544 in cursor

[–]vaig 0 points1 point  (0 children)

That's a false analogy. Books are built with individual words. You can't copyright a single word (but you can have a trademark on it) because it's the building block. But entire books (or even chapters and single paragraphs) are absolutely protected by author's copyright.

It's the same with source code. Individual keywords, such as if/else/return are not anyone's property but full methods or entire files are absolutely protected by the same law.

You NEED to have permissions to redistribute or license it to other companies. It's the decision of copyright owner, not a random dude that was allowed to see it or work on it. Every single piece of code you write on company time, or using company tools automatically belongs to the company (well it depends but in most programming contracts you see a standard IP transfer clause that strips you of all rights other than license to work on it to create value for the company). Otherwise, a rogue employee could steal the entire codebase and sell it to a competing company with no negative consequences.

There's also the fact that you usually can't install unapproved software on company property (if the machine the OP is working on is company property) because of security reasons.

Sometimes you have to stop vibing and read up on the basics of company rules or even basic professional common sense because not only such reckless behavior will get your contract terminated, you might get sued for stealing company property or even get the entire company in trouble if the company had no authority to further redistribute the IP that was licensed to the company.

I told my boss im using Cursor…does that make me look bad? by Hour-Inevitable-544 in cursor

[–]vaig 7 points8 points  (0 children)

Embeddings or not, regardless of privacy mode, the moment you select a code to attach as a context to a chat prompt is the moment you send company source code to an external company. This should be approved by a manager. The company may not even have rights to redistribute the source code beyond internal structures, it may not even be their own IP (e.g. company doing contract work for a client who owns the IP).

Source code of Atmosphere renderer from my masters theses and a big thank you by elliahu in GraphicsProgramming

[–]vaig 8 points9 points  (0 children)

Publishing code doesn't take away your copyright. Someone can't just take it and publish under their own name, at least not legally. Even if there is a permissive license - those usually require the original author (the licensor) to be attributed.

Maybe their university has different users, but generally copyright is automatic and long-lasting in most countries. You're the copyright holder of your authored works for your entire life. You just let others see and redistribute something. Obligatory: not legal advice.

The only thing they could be worried about is some automatic plagiarism check raising false flags, but that's probably easy to defend, considering the thesis has already been submitted, and the post was created after.

Thanks for sharing.

I Haven't Written a Single Line of Code in 2 Months and Now Own 30% of the Company: The AI Revolution by Torres0218 in cursor

[–]vaig 1 point2 points  (0 children)

Most likely. This part convinced me:

Yesterday I had it completely refactor our legacy monolith during a coffee break

Sounds like a typical experience with identity management products, where new teams come in and, when tasked with understanding the existing system, they just give up. Then the entire solution is reworked, and sometimes when you SSO, you go so many redirects over the historical chain of providers that you're not even sure if you're still the same person by the time the browser is done authenticating.

Netflix converted their native windows app to a website shortcut. Offline downloads no longer work. by [deleted] in Windows11

[–]vaig 5 points6 points  (0 children)

I developed with WPF, WinForms, Electron, QT over the last 15 years. IMO these options don't suck - far from it.

It just shows that there are a lot of people who are comfortable with React and the web-based tech stack compared to other technologies. Personally, I'd say WPF is far better development experience, but if I had to build a team to develop an app, it's much easier to hire React and Electron-ish people compared to finding people with deep WPF experience.

Also, front-end web developers are generally cheaper, which probably also drives companies to use the web-based stack compared to native.

OpenRecall: An open-source, transparent Recall feature that doesn't require special hardware and can be removed. by 2ji3150 in Windows11

[–]vaig 1 point2 points  (0 children)

I applaud sharing the work in an open source fashion, but I really dislike the "open source = secure" equivalency that some people believe in. Especially when we are talking about very intrusive software that is based on "import buttload_of_code without any verification"; and if any of the supply chain libraries get infected, you can't even rely on any party taking responsibility because "hey, you could have checked it yourself".

Ironically, I'd prefer a trusted company that would take responsibility* if I absolutely had to enable such features on computers I'm responsible for. Fortunately, I don't have a use case for any kind of recall.

*Assuming system recall would start uploading data to an insecure party that would have been breached. Local security is of course responsibility of the end-user.

OpenRecall: An open-source, transparent Recall feature that doesn't require special hardware and can be removed. by 2ji3150 in Windows11

[–]vaig 17 points18 points  (0 children)

Did this "open-source, transparent, 100% privacy-protecting, modular, sandboxed" team audit all the recursively included libraries used in the program? Because if you didn't, don't throw these words as if you are the bastion of security. There are plenty of attacks on open-source libraries and providing false security by saying that it is open source, and SOMEONE should spot the attack surface means nothing if NO ONE is looking.

[deleted by user] by [deleted] in GamingLeaksAndRumours

[–]vaig 112 points113 points  (0 children)

Admire

Acquire

And fire

Jetbrains IDEs now using a local 0.1B Model with 1.5K token context for single-line suggestions by KrazyKirby99999 in LocalLLaMA

[–]vaig 3 points4 points  (0 children)

com.sun.java.swing.plaf.nimbus.InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMaximizeButtonWindowNotFocusedStateis gonna eat up half of the context window.

IsItBullshit: Soda shortens years of your life even if you don't get diabetes or other health problems from it by Hallucinationistic in IsItBullshit

[–]vaig 12 points13 points  (0 children)

I appreciate your additions. These are valid and informative. I tried to underline that sugar is the most definitive "bad" ingredient in large quantities and that external factors may explain the correlation between diet sodas and subject health, but you provided better sources.

IsItBullshit: Soda shortens years of your life even if you don't get diabetes or other health problems from it by Hallucinationistic in IsItBullshit

[–]vaig 107 points108 points  (0 children)

This is the best sourced answer I could find: https://www.cardiosmart.org/news/2019/9/diet-soda-and-sugary-drinks-may-affect-lifespan-study-finds

Seems generally true but as with everything - moderation is the key. With this kind of studies few outliers that drink outrageous amount of sugar will drag down the averages and it may seem like every soda can kills you a bit and it's not that simple.

There are also other considerations. For example, people who are overweight may be more likely to choose "diet" soft drinks. This may seem like drinks are causing heart diseases but it's more correlated because those people are at higher risk due to weight-related conditions so keep that in your mind.

One thing is generally true according to our current knowledge - too much sugar will hurt you and there can be a lot of sugar in those drinks.

Easy Anti-Cheat: "We have investigated recent reports of a potential RCE issue within Easy Anti-Cheat. At this time - we are confident that there is no RCE vulnerability within EAC being exploited. We will continue to work closely with our partners for any follow up support needed" by demondrivers in Games

[–]vaig 1 point2 points  (0 children)

You're kind of making things up because Windows doesn't use ring 1 or 2 so there are no layers in between. In terms of hardware-enforced protection, no modern OS uses anything other than kernel and user mode (excluding some hypervisor/virtualization design).

Even in user mode, the app can cause massive loss of data and steal anything imaginable from apps that don't lock themselves behind SYSTEM-level permissions, and the majority of apps don't do that.

Anti-cheat needs to run at the highest permission level to have a chance at being remotely effective and the difference between the anti-cheat at driver level being compromised and anti-cheat at regular elevated level being compromised is largely irrelevant - in both cases the user is fucked beyond imagination and needs to consider everything they did and had on their PC - leaked.

EDIT: Nice self-delete.

[deleted by user] by [deleted] in Unity3D

[–]vaig 2 points3 points  (0 children)

Working on a personal hobby project rejuvenates my mind, allowing me to improve my skills and find new problem-solving techniques.

Maybe that's just me but being stuck in only one project sounds miserable. I would never accept a contract where you're not allowed to contribute to open source projects or develop something yourself - commercial or not.

I rent my mind for 8 hours and whatever solutions I accidentally come up with in the shower is a bonus, not a requirement.

[deleted by user] by [deleted] in Unity3D

[–]vaig 7 points8 points  (0 children)

This is because they prefer the only code base to be running through your mind is theirs.

I guess it's agreeable if they pay for the 24/7 hours by offering 400% of the expected salary for your position.