• Breaking News

    Saturday, March 30, 2019

    Why is rendering shadows so slow? Ask Programming

    Why is rendering shadows so slow? Ask Programming


    Why is rendering shadows so slow?

    Posted: 30 Mar 2019 09:24 PM PDT

    From my understanding GPUs can rasterize polygons and fill extremely fast.

    Isn't a shadow just a projected surface (from the perspective of the light source) on everything? Is it rendered once at the beginning or do most game engines render shadows every frame?

    submitted by /u/courself
    [link] [comments]

    how do i make make certain events happen at each locations

    Posted: 30 Mar 2019 08:12 PM PDT

    gunrange =('Gun Range',"You are at the gun range")

    gunstore =('Gun Store',"You are at the gunstore")

    home =('Home',"You are at your home")

    crewhouse =('Crew House',"You are in the crew safehouse")

    airport =('Airport',"Welcome to Moscow International Airport")

    bank =('Bank',"Welcome to the Russian Federal Bank")

    transitions ={

    gunrange:(gunstore,),

    gunstore:(gunrange,home,crewhouse,bank,airport),

    home:(gunstore,crewhouse,bank,airport),

    crewhouse:(home,gunstore,airport,bank),

    airport:(home,gunstore,crewhouse,bank),

    bank:(home,airport,crewhouse,gunstore),

    }

    location = gunrange

    #travel

    while True:

    print("You can go to these places")

    print (location[1])

    for (i , t) in enumerate(transitions[location]):

    print (i +1,t[0])

    choice =int(input("Choose one\n"))

    location = transitions[location][choice -1]

    submitted by /u/arab212
    [link] [comments]

    How can I detect what coding language is used on website?

    Posted: 30 Mar 2019 06:04 AM PDT

    What programming language would I use to interact with a game?

    Posted: 30 Mar 2019 10:01 PM PDT

    I'd like to build an overlay for a game that isn't possible using the modding API. Is there a preferred language to retrieve and send data to a running application?

    submitted by /u/Saint_Icarus
    [link] [comments]

    I have lots of questions about Swift, can anyone help me?

    Posted: 30 Mar 2019 07:49 PM PDT

    I'm taking a class learning iOS programming using the latest XCode version and Swift 3 I think. I'm at the point where I'm learning api calls and I have questions about the best way to implement that so I can use JSON info globally (if that's possible). Specifically how can I display relevant information in my custom cells in my table view. I also have questions about class structure and the best way to use a segue (is it using an override function outside of viewDidLoad()? Is it in the button action outlet?) When I'm segueing from a cell in a table view do i need to call the row that is being selected? As you can see I have a lot of questions.

    submitted by /u/GolfingNC
    [link] [comments]

    Is there a speedrun for programming?

    Posted: 30 Mar 2019 01:18 PM PDT

    As an intro, I'd just like to say that I've been a big fan of Summoning Salt's videos on speedrunning (more on this later). Recently I was pair-programming with yet another developer at my company who did not know basic refactoring tools and basic keyboard shortcuts in Pycharm. I strongly feel that people either don't care about using as few key strokes as possible in order to get their job done, or are not aware that they could be 10 times more efficient if they cared about it.

    So I've thought about it for a bit, and I think speedrunning is the key. Imagine: you have a given "game" (a programming kata) with a well-defined goal ("change this code into this code"). There is a plugin on your editor which lets you see the different games, and you can pick one. 3, 2, 1 go, you rush into refactoring the code, try to use as little code as you can, finishing refactoring everything and voila, you have your time score. You can see how you fit into all the scores (for example, visualize the gaussian and see that you're better than 95% of people), how you fit against your peers at work, etc. Of course if you want you can visualize how other people achieved their own score and maybe also run against ghost of their performance (yes, I've also been played a lot of Mario Kart 8 Deluxe recently).

    Does this exist? Do subsets of this exist? Do other ideas for the same goal exist? I've been searching on google for half an hour without finding anything.

    As a closing word, I'd like to stress that I do not think that coding should be about speed only, it must be about quality and readability first. But right now I feel that developers at my company at good for conceptions and not good enough at speed, hence this idea. And if someone wants to take a crack at it, go ahead, it's open.

    submitted by /u/fl4v1
    [link] [comments]

    Any textbook or notes for the UC San Diego Coursera big data specialisation?

    Posted: 30 Mar 2019 04:15 AM PDT

    I want to be able to review the videos of the specialisation, and can't find any textbook or notes equivalent to the course content.

    Something like this would be perfect: http://sux13.github.io/DataScienceSpCourseNotes/

    Any pointers to any resources. Any written material would be helpful. notes. captions. textbooks, anything but videos. I am not a huge fan of videos.

    submitted by /u/NobleSiks
    [link] [comments]

    Coding and Dyslexia

    Posted: 30 Mar 2019 12:11 AM PDT

    Hello! Recently started my first real job as a junior dev at a small startup. And on the project I'm working on there is only me and one other person, and that person is dyslexic. Now the only issue I have with this is misspelling in variable/function names and Elements in the HTML that have a class like "image-rapper". Now this is costing me time since I have to correct that stuff, she literally can't :). So my question is if you know of any tools that can aid her before pushing her stuff to git? Or any tips on how to bring this up? Don't wanna step on anyones toes and it's not a huge prob. But it might be when the project grows. Thanks in Advance.

    submitted by /u/Svimmelbring
    [link] [comments]

    How can I read in-game information on Steam games in Windows?

    Posted: 30 Mar 2019 07:22 AM PDT

    Hello,

    I'm a web developer. I don't make desktop apps, though I do have a little bit of experience in mobile development. I play a lot of games and I see people made software that can show me information about the game information and I wonder... how do they do that?

    For example, there a desktop application called Alpha Console. It works with a game called Rocket League (a soccer game, but you're cars instead of people). in Rocket League, you can unlock other cars or wheels so you can customize how your car looks. Alpha Console has a feature that can export all the cars and wheels you have to a CSV file so you can see them listed nicely.

    I've been doing programming for many years, and I would like to develop my own apps that can read in-game data to create something nice for users. I know Java, C#, and JavaScript. And chances are, I can pick up a new language pretty easily.

    Note: This is not for illegal cheating/hacking purposes or anything like that.

    submitted by /u/AskYous
    [link] [comments]

    How hard is it to set up my own backend?

    Posted: 30 Mar 2019 07:07 AM PDT

    I want to create a social media app. Do the backend is gonna be huge. How hard is it to set one up myself and to use what? Or should I just use fire base? Heard firebase is not very good when I wanna scale up and the data don't transfer... plz help never had lessons on backend in school.

    submitted by /u/MuskIsAlien
    [link] [comments]

    Not sure if correct sub for this but how come i can have dozens of tabs open in chrome on my iPhone and it doesn’t affect performance but if i have 10 or so tabs open on my 2018 iMac it slows to a crawl?

    Posted: 30 Mar 2019 06:48 AM PDT

    How to blacklist words in a HTML form?

    Posted: 30 Mar 2019 02:18 AM PDT

    I was wondering how I am able to blacklist certain words from being entered in my form. Specifically, the username field. I'm not sure if I need access to the PHP/JS files, but I have limited access to those.

    <div class="form-group"> <label for="username" class="control-label">{{ lang('signup.username') }}</label> <input type="text" class="form-control" id="username" value="{{ data['login'] }}" name="RegistrationForm[login]" placeholder="Enter username">'=== </div> {% if name_fields %} 
    submitted by /u/skrzzy
    [link] [comments]

    How is data stored in online calendars is it plain text or encrypted?

    Posted: 30 Mar 2019 12:56 AM PDT

    What's the general practice here? I'd imagine each entry should be encrypted right? I'm planning to build something myself for fun.
    Just wondering what the usual procedure is?
    Is the data encrypted in the app, on arrival at the server, not at all?

    submitted by /u/bot_bot_bot
    [link] [comments]

    No comments:

    Post a Comment